Socket
Book a DemoInstallSign in
Socket

fake-users-alesscuderi

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

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.

0.1.2
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
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

fake

FAQs

Package last updated on 10 Jan 2018

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.