Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 2.21 KB

Readme.md

File metadata and controls

23 lines (21 loc) · 2.21 KB

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)