@n4ze3m/fakejs
v0.0.6
Published
![npm bundle size](https://img.shields.io/bundlephobia/min/@n4ze3m/fakejs)
Downloads
4
Readme
FakeJS
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: "[email protected]",
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 [email protected]address
data from gofakeit
Contributing
Please feel free to open an issue or create a pull request.