# generate massive amounts of fake data in the browser and node.js
(opens new window) (opens new window) (opens new window)
# Browser Demo
https://rawgit.com/Marak/faker.js/master/examples/browser/index.html (opens new window)
# Hosted API Microservice
http://faker.hook.io (opens new window)
- Supports all Faker API Methods
- Full-Featured Microservice
- Hosted by hook.io (opens new window)
curl http://faker.hook.io?property=name.findName&locale=de
# 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
address →