Javascript-Faker v2.7.0: A set of javascript packages that generates fake data for you.

icon
Latest Release: v2.7.0
  • Added new method firstname to generate fake first name value.
  • Added new method lastname to generate fake last name value.
Source code(tar.gz)
Source code(zip)

Faker

A set of javascript packages that generates fake data for you.

Version License

Install

$ npm install --save @fakerjs/faker

Usage

import faker from '@fakerjs/faker';

faker.animal();
//=> Snow Leopard

faker.gender();
//=> Female

faker.profession();
//=> Software Engineer

// etc...

Browse all faker javascript packages

License

The MIT License (MIT) Copyright (c) Sergey Romanenko

Comments

  • Consider Merging with `@faker-js`
    Consider Merging with `@faker-js`

    Jan 13, 2022

    Hi! I'm Damien from the @faker-js team. I was just wondering if you had considered merging with @faker-js/faker. If not, more power to you, but I figure the more the merrier.

    Reply
  • @types/faker-js
    @types/faker-js

    Jan 10, 2022

    Is your feature request related to a problem? Please describe. I'm unable to use typescript with this library without creating my own type defs

    Describe the solution you'd like npm i @types/faker-js or something similar

    Additional context

    Could not find a declaration file for module '@faker-js/faker'. '$DIR/node_modules/@faker-js/faker/index.js' implicitly has an 'any' type.
      Try `npm i --save-dev @types/faker-js__faker` if it exists or add a new declaration (.d.ts) file containing `declare module '@faker-js/faker';`ts(7016)
    
    Reply