A library for generating fake data such as names, addresses, and phone numbers.
Faker
This gem is a port of Perl's Data::Faker library that generates fake data.
It comes in very handy for taking screenshots (taking screenshots for my
project, Catch the Best was the original impetus
for the creation of this gem), having real-looking test data, and having your
database populated with more than one or two records while you're doing
development.
NOTE
While Faker generates data at random, returned values are not guaranteed to be unique by default
You must explicity specify when you require unique values, see details
Values also can be deterministic if you use the deterministic feature, see details
This is the master branch of Faker and may contain changes that are not yet released
Please refer the README of your version for the available methods.
List of all versions is available here.
Software engineer, I love building things with node and javascript. If I'm not writing code, I'm probably outside doing something in the mountains or playing Rocket league
<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
Faker.fake()
faker.js contains a super useful generator method Faker.fake for combining faker API methods using a mustache string format.
Example:
console.log(faker.fake("{{name.lastName}}, {{name.firstName}} {{name.suffix}}"));
// outputs: "Marks, Dean Sr."
This will interpolate the format string with the value of methods…
We use this Ruby gem:
stympy / faker
A library for generating fake data such as names, addresses, and phone numbers.
Faker
This gem is a port of Perl's Data::Faker library that generates fake data.
It comes in very handy for taking screenshots (taking screenshots for my project, Catch the Best was the original impetus for the creation of this gem), having real-looking test data, and having your database populated with more than one or two records while you're doing development.
NOTE
master
branch of Faker and may contain changes that are not yet released Please refer the README of your version for the available methods. List of all versions is available here.Contents
May or may not be convenient in your context, but there are different ports of this available in different coding environments I believe.
This. For the client side only, or node.js amongst the crowd you can use this version.
Marak / faker.js
generate massive amounts of realistic fake data in Node.js and the browser
faker.js - generate massive amounts of fake data in the browser and node.js
Demo
rawgit.com/Marak/faker.js/master/e...
Hosted API Microservice
faker.hook.io
Usage
Browser
Node.js
API
Faker.fake()
faker.js contains a super useful generator method
Faker.fake
for combining faker API methods using a mustache string format.Example:
This will interpolate the format string with the value of methods…
Oh wow, this is great. Thanks for sharing Ben!