Let’s fake it till we make it!

faker.js is a JavaScript library for generating a little or a lot of dummy data. Fake data can be used to build and test applications in the browser and node.js.

Demonstrated here are some example outputs of faker.js data, created to take the guess-work out of what your data could look like.

Setup

npm install faker in your project folder in the command line.

const faker = require(“faker”) in any project file you plan to use faker.js in.

faker.categoryName.dataName() to use any of the faker functions.

The categoryNames are above each chart and the…

Morgannewray

computer software engineer that graduated from Fullstack Academy

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store