@the-/seed
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
- module:@the-/seed
- TheSeed
See API Guide for more detail
License
This software is released under the MIT License.