New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

water_faker

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

water_faker

An library that can be used to generate fake user data, read the read.me for more details.

latest
npmnpm
Version
1.0.7
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

What is Water?

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.

Documentation

Install

npm install water_faker

Generate random values

require 'water_faker'

let gender = "male" or "female"
let name = GenerateUserName(gender);
let id = GenerateUserID();
let email = GenerateUserEmail();
let password = GenerateUserPassword();
let profileImage = GenerateUserProfileImage();

Generate random user

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)'

Generate list of random users

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)'

Want to contribute

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

Keywords

test

FAQs

Package last updated on 03 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts