1.0.3 • Published 1 year ago

dummy-user-generator v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago