1.0.1 • Published 3 years ago

pr-e-las v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Data-Generator

A simple data generator command line tool to generate random data based on a specific template.

The application is using Chance.js to generate random data. Any data type is supported by Chance.js.

Installation

npm install --global pr-e-las

Usage

  Usage: pr-e-las [options]

  Options:

    -h, --help                 output usage information
    -V, --version              output the version number
    -t, --template <template>  JSON template for data to be generated
    -c, --count [count]        The number of elements to create, defaults to 1
    -f, --fileName             Name of the file of the data to be generated, Default => 'Default.json'

Example

In Linux can be used like below:

pr-e-las -t '{ "name": "name", "age": "age", "phone": "phone", "_id": "guid" }' -c 2 -f StudentData.json

In Windows can be used like below:

pr-e-las -t '{ \"name": \"name", \"age": \"age", \"phone": \"phone", \"_id": \"guid" }' -c 2 -f StudentData.json