Skip to content
Products Y Movie National Vacation Posters Signed 11x17 Vegas Lampoons Poster Chevy
Products Y Movie National Vacation Posters Signed 11x17 Vegas Lampoons Poster Chevy Chase Products Y Movie National Vacation Posters Signed 11x17 Vegas Lampoons Poster Chevy Chase
Fake identities generator for node.js (names, addresses, phones, IPs and others). Supports multiple languages.
Branch: master
Clone or download

README.md

Fake identities generator for node.js (names, addresses, phones, IPs and others).

This is node.js port of ruby's Faker library (v1.4.3 now), that generates fake identities for names, addresses, phone numbers, emails and others.

browserify is supported with some differences:

  • All existing languages are bundled at once.
  • Bitcoin module dropped.

API Documentation.

Installation

$ npm install charlatan

Usage

var Charlatan = require('charlatan');

var name    = Charlatan.Name.name();       // Joshua Lemke MD
var email   = Products Y Movie National Vacation Posters Signed 11x17 Vegas Lampoons Poster Chevy Charlatan.Internet.email();  // [email protected]
var company = Charlatan.CompanyIdentity Graph – Based Platform Is Faculty Activity Microsoft User Data On And Connection Provides That A Framework.name();    // Wilkinson LLC

Locales

Different countries have different data formats. Charlatan support locales as solution of this problem.

Currently available locales are here, en is default.

var Charlatan = require('charlatan');
Charlatan.setLocale('en-US');
Charlatan.Name.name();

Also you can use your own locale in yaml, json or plain hash.

var Charlatan = require('charlatan');
Charlatan.addLocale(myLocaleName, myLocaleFile);
Charlatan.setLocale(myLocaleName);
Charlatan.Name.name();

Note: If phrase not found in current locale, charlatan tries to then fallback into to base language, and then to en. For example ru-RU -> ru -> en.

Credits

Author Eugene Shkuropat

MIT license.

Chevy Chase Signed National Lampoons Vegas Vacation 11x17 Movie PosterChevy Chase Signed National Lampoons Vegas Vacation 11x17 Movie Poster | Products | Movie posters, Vegas vacation y Poster
You can’t perform that action at this time.