Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@n4ze3m/fakejs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@n4ze3m/fakejs

![npm bundle size](https://img.shields.io/bundlephobia/min/@n4ze3m/fakejs)

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 17 Jan 2022

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc