fake-users-array
v1.0.4
Published
A simple package to manage a fake-users-array
Downloads
3
Readme
Fake User
A simple package to manage a fake users array
Install
$ npm install fake-users-array
Usage
var fakeUser = require('fake-user-array');
Get all the users from your array
Get
fakeUser.getUsers();
Get individual users by id.
fakeUser.getUsersById(id);
Add a new user with addUser(name, surname, dateOfBirth, email)
. The package will automatically assign an id to the new user.
fakeUser.addUser(name,surname,dateOfBirth,email);
Delete a user by id with deleteUserById(id)
.
fakeUser.deleteUserById(id);
Reset original users-array with reset()
.
fakeUser.reset();