1.0.4 • Published 4 years ago

mrr-json-generator v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

JSON Generator

JSON Generator is a tool to generate sample data in JSON format for testing purposes. It includes a variety of data types to randomly generate and simple iteration configurations to generate massive amounts of data.

Installation

$ npm install -g mrr-json-generator

Usage

To use the utility you need to create a simple JSON template and specify the properties and data types you want

{
    "id": "uuid",
    "age": "age",
    "phone": "phone",
    "price": "price",
    "card": "credit-card",
    "friends": [
        {"repeat": 5},
        {
            "id": "index",
            "name": "first-name",
            "last-name": "last-name"
        }
    ],
    "check-ins":{
        "id": "id",
        "name": "first-name",
        "opened": "date",
        "users": [
            {"repeat": 15},
            {
                "id": "uuid",
                "index": "index",
                "married": "boolean"
            }
        ]
    }
}

and then execute

$ json -i origin/template.json -o destination/output.json
1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago