15.5.1 • Published 4 years ago

@the-/seed v15.5.1

Weekly downloads
569
License
MIT
Repository
github
Last release
4 years ago

@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

15.5.1

4 years ago

15.4.1

5 years ago

15.2.0

5 years ago

15.1.4

5 years ago

15.1.3

5 years ago

15.1.2

5 years ago

15.1.0

5 years ago

15.0.3

5 years ago