1.0.2 • Published 4 years ago

genjsondb v1.0.2

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

genjsondb

genjsondb is a cli tool that generates random data, genjsondb uses (mocker-data-generator, Faker, Chance, RanExpJs, typescript-starter, yargs) to accomplish this feat.

This is the generated data.

{
  "user": [
    {
      "id": "82fccbfb-8449-54ba-9717-a1ff98f44159",
      "name": "Bettye",
      "email": "Rodolfo.Daniel21@hotmail.com"
    },
    {
      "id": "c2a3dd32-3a4a-5634-b541-4bff88a71d98",
      "name": "Retta",
      "email": "Johnnie_Anderson80@gmail.com"
    },
    {
      "id": "1048161f-5a4b-5954-8a12-cb20c30f0672",
      "name": "Jalon",
      "email": "Barton47@yahoo.com"
    },  
    ...

Installation

   npm install -g genjsond

Usage

   genjsondb --nr 5 --sn user --sf sample.json

   --or--

   genjsondb --nr 5 --sn user --sf sample.json --fs

   --or--

   genjsondb --nr 5 --sn user --sf sample.json > db.json

Sample schema

{
    "id": "chance": "guid",
    "field name 1": "faker": "name.firstName",
    "field name 2": "faker": "internet.email",
    ...
}

Credits

License

Licensed Under MIT license, 2020

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago