dummy-user-generator

1.0.3 • Public • Published

dummy-user-generator

npm version GitHub issues GitHub license

A simple npm package to generate fake user data for testing and development purposes.

Installation

npm install dummy-user-generator

Usage

import {GetUsers, GetUserById} from 'dummy-user-generator'

// Get a list of dummy users
GetUsers().then(users => {
    console.log(users);
});

// Get a specific dummy user by ID
GetUserById(3).then(user => {
    console.log(user);
});

Features

  • Generates random dummy user data.
  • Provides functions to retrieve a list of users or a specific user by ID.
  • Easy to integrate into your testing or development workflow.

API

  • GetUsers() Returns a Promise that resolves to an array of dummy users.

  • GetUserById(id) id: The ID of the user to retrieve. Returns a Promise that resolves to a specific dummy user.

License

This project is licensed under the ISC License.

Author

Surya Prakash Gupta

Acknowledgments

Special thanks to dummyjson.com for providing a dummy API for testing purposes.

Links

Package Sidebar

Install

npm i dummy-user-generator

Weekly Downloads

5

Version

1.0.3

License

ISC

Unpacked Size

4.3 kB

Total Files

4

Last publish

Collaborators

  • suryagupta