fakeusersabc
v0.1.1
Published
a simple package to manage a fake user array
Downloads
2
Maintainers
Readme
FakeUsers-package
Create your fake users
Installation
npm install fakeusersabc-package
Usage
var fakeusers = require('fakeusersabc-package');
console.log(this.getUsers()); // outputs all
console.log(this.getUsersId(1)); // return user with id 1
console.log(this.addUsers({name: "Carmen", surname: "Consoli"})); // add new user
console.log(this.deleteUser(1)); // delete user with id 1
console.log(this.modifyUser(2,{name: "Raffaella", surname: "Carrà"}));
console.log(this.reset()); // reset fake users;