Skip to content

Latest commit

 

History

History
 
 

faker

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Faker

The faker object in Helix is a very light-weight wrapper for Faker.js

Usage

import { createSpec, faker } from "@helpscout/helix";

const Dinosaur = createSpec({
  id: faker.datatype.number(),
  name: faker.name.firstName(),
  location: faker.address.country(),
});

Methods

For a full list of all the available Faker methods, check out their documentation.

Helix has enhanced Faker with a couple of methods: