UNPKG

@helpscout/helix

Version:

A Faker-powered fixture generator for Javascript

24 lines (15 loc) 558 B
# Faker The `faker` object in Helix is a very light-weight wrapper for [Faker.js](https://github.com/marak/Faker.js/) ### Usage ```js 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](https://github.com/marak/Faker.js/#api-methods)**. Helix has enhanced Faker with a couple of methods: - [fake](./fake.md)