@the-/seed

15.5.1 • Public • Published

@the-/seed

npm Version

Data generator for the-db

Installation

$ npm install @the-/seed --save

Usage

'use strict'

const theSeed = require('@the-/seed')

async function tryExample() {
  const seed = theSeed('ja', {
    vars: {
      /* ... */
    },
  })
  const users = seed.explode(
    {
      name: '#{name.firstName()}',
    },
    100,
  )

  console.log(users) // -> [ username: 'xxxxx', /* ... */ ]
}

tryExample().catch((err) => console.error(err))

API Guide

See API Guide for more detail

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i @the-/seed

Weekly Downloads

8

Version

15.5.1

License

MIT

Unpacked Size

32.5 kB

Total Files

16

Last publish

Collaborators

  • okunishinishi