divyeshmakwana96 / injson

Command line utility to build json using nested json files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

injson

Command line utility to build json using nested json files.

oclif Version Downloads/week License

Installation

$ npm install -g injson

Format

You can use !include('./path-to-json/item1.json')

Example usage:

{
  "pi": 3.141,
  "happy": true,
  "questions:": [
    "!include('./questions/item1.json')"
  ],
  "answer": {
    "everything": 42
  }
}

Command

$ injson input.json output.json -m

-m parameter is optional and will export json as minified.

About

Command line utility to build json using nested json files.


Languages

Language:TypeScript 85.4%Language:JavaScript 13.3%Language:Batchfile 1.3%