Socket
Socket
Sign inDemoInstall

fake-users-alesscuderi

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fake-users-alesscuderi

This is my first package, yay! It manages an array of fake users.


Version published
Weekly downloads
4
Maintainers
1
Created
Weekly downloads
 

Readme

Source

fake-users-alesscuderi

This is a simple package that manipulates the mock of an array of users.

Installation

npm i fake-users-alesscuderi

Usage

You can use one of the following functions.

var fakeusers = require('fake-users-alesscuderi');

console.log(this.getAll());

prints the array

console.log(this.getUserById(3));

returns the user with the given id

console.log(this.addUser({
  name: 'John',
  surname: 'Doe'
}));

Adds an user to the array


console.log(this.deleteUser(1));

Deletes the user with the given id

console.log(this.editUser(2, {
  name: 'John',
  surname: 'Doe'
}));

replaces the information of the user at the given position with new ones

console.log(this.resetUsers());

resets any modification made to the array.

Keywords

FAQs

Last updated on 10 Jan 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc