Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 936 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 936 Bytes

json-schema-faker-cli

MIT License Build Status

NPM status

It is a CLI for json-schema-faker.

install

npm install -g json-schema-faker-cli

usage

generating single object from the schema

generate-json schema.json output.json

  • schema.json - file containing JSON schema
  • output.json - generated file according to the provided schema

generating array of multiple objects

generate-json schema.json output.json $ITEMS_LENGTH

  • ITEMS_LENGTH - number of objects in the array