Skip to content

generate massive amounts of fake data in Node.js and the browser

Notifications You must be signed in to change notification settings

zuriby/Faker.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Faker.js - generate massive amounts of fake data in the browser and node.js

### online demo @ http://maraksquires.com/Faker.js/ ## USAGE ### browser -
  <script src = "Faker.js" type = "text/javascript"></script>
  <script>
    var randomName = Faker.Name.findName(); // Caitlyn Kerluke
    var randomEmail = Faker.Internet.email(); // [email protected]
    var randomCard = Faker.Helpers.createCard(); // random contact card containing many properties
  </script>

node.js -

  var Faker = require('./Faker');
  var randomName = Faker.Name.findName(); // Rowan Nikolaus
  var randomEmail = Faker.Internet.email(); // [email protected]
  var randomCard = Faker.Helpers.createCard(); // random contact card containing many properties

API

  • Name
    • findName
  • Address
    • zipCode
    • city
    • streetName
    • streetAddress
    • secondaryAddress
    • ukCounty
    • ukCountry
  • PhoneNumber
    • phoneNumber
  • Internet
    • email
    • userName
    • domainName
    • domainWord
  • Company
    • companyName
    • companySuffix
    • catchPhrase
    • bs
  • Lorem
    • words
    • sentence
    • sentences
    • paragraph
  • Helpers
    • randomNumber
    • randomize
    • replaceSymbolWithNumber
    • shuffle
    • generateDataSet
    • createCard
  • definitions
    • first_name
    • last_name
    • name_prefix
    • name_suffix
    • us_state
    • us_state_abbr
    • city_prefix
    • city_suffix
    • street_suffix
    • uk_county
    • uk_country
    • catch_phrase_adjective
    • catch_phrase_descriptor
    • catch_phrase_noun
    • bs_adjective
    • bs_buzz
    • bs_noun
    • domain_suffix
    • lorem
    • phone_formats
## Authors ####Matthew Bergman & Marak Squires Heavily inspired by Benjamin Curtis's Ruby Gem [Faker](http://faker.rubyforge.org/) and Perl's [Data::Faker](http://search.cpan.org/~jasonk/Data-Faker-0.07/lib/Data/Faker.pm)

About

generate massive amounts of fake data in Node.js and the browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published