New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

Faker

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Faker

Generate massive amounts of fake contextual data

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.7K
increased by6.09%
Maintainers
0
Weekly downloads
 
Created
Source

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(); // Rusty@arne.info
    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(); // Kassandra.Haley@erich.biz
  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
    • paragraphs
  • Helpers
    • randomNumber
    • randomNumberWithin
    • randomize
    • replaceSymbolWithNumber
    • shuffle
    • generateDataSet
    • createCard
    • userCard
  • 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)

FAQs

Package last updated on 25 Aug 2012

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