Water is an open source library to allow clients and users to generate random user data, not limited to email, name, password, profile image and more.
Water is flexible in terms of how you want to generate and output data, you can easily override to return an output in JSON or XML.
Water has the ability to let create and validate custom field(s) JSON Web Tokens.
npm install water_faker
require 'water_faker'
let gender = "male" or "female"
let name = GenerateUserName(gender);
let id = GenerateUserID();
let email = GenerateUserEmail();
let password = GenerateUserPassword();
let profileImage = GenerateUserProfileImage();
require 'water_faker'
//all of the fields in the options array are optional
let options = {
gender: "female",
custom_email_domain: null,
email_length: 0,
include_special_password: false,
password_length: 0
}
let user = GenerateRandomUser(options);
console.log(user)'
require 'water_faker'
//all of the fields in the options array are optional
let options = {
outputType: "xml",
numberOfUsers: 20,
gender: "male",
custom_email_domain: "@company.com",
email_length: 20,
include_special_password: true,
password_length: 20
}
let list = GenerateRandomListOfUsers(options);
console.log(list)'
If you're interested in contributing, feel free to create an issue and a pull request for approval.
Viraj Patel(Lead): The Ohio State University
Shrutwa Soni: The Ohio State University