0.0.6 • Published 2 years ago

@n4ze3m/fakejs v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

FakeJS

npm bundle size

Random data generator for JavaScript.

Installation

using npm:

npm install @n4ze3m/fakejs

using yarn:

yarn add @n4ze3m/fakejs

Supported fake data types

  • person: Generates a random personal data.
    • randomName()
    • randomPerson()
    • randomEmail()
    • randomPhone()
    • randomAddress()
    • randomStreet()
    • randomCity()
    • randomCountry()
    • randomState()
    • randomZip()
    • randomLatitude()
    • randomLongitude()

Usage

  • Javascript
const fakejs = require("@n4ze3m/fakejs");

const person = fakejs.person.randomePerson();
console.log(person);

output:

{
      id: "5edadsdklj3dsdskjd2dsmkk",
      firstName: "John",
      image: "https://picsum.photos/500/500",
      lastName: "Doe",
      age: 25,
      gender: "M",
      phone: "+1-123-456-7890",
      email: "john.doe@yahoo.com",
      address: {
       address: "123 Main Lorem Ipsum St, Alappuzha, Kerala, 688888, Estonia",
       street: "123 Main Lorem Ipsum St",
       city: "New York",
       state: "Kerala",
       zip: "688888",
       country: "Estonia",
       coordinates: {
           latitude: "-19.98888",
           longitude: "6.98888"
       }
      }
}

Data Credit

  • name data from faker@5.5.3

  • address data from gofakeit

Contributing

Please feel free to open an issue or create a pull request.

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.0

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago