inject-json

0.0.10 • Public • Published

inject-json

inject json files in json file

####example cat host.json =>

{
  "#inject#": [
    "dep.json"
  ]
}

cat dep.json =>

{
  "version": "1.2.3"
}

inject-json host.json =>

{
  "dep.json": {
    "version": "1.2.3"
  }
}

####install npm install inject-json

####usage

  Usage: inject-json [options] <json file>

  Options:

    -h, --help              output usage information
    -V, --version           output the version number
    -i, --inject [keyword]  inject keyword ['#inject#']
    -m, --merge [function]  specify merge. default = (next, path, cb) => {cb( next );}

####roadmap

  • fetch urls

Readme

Keywords

none

Package Sidebar

Install

npm i inject-json

Weekly Downloads

2

Version

0.0.10

License

MIT

Last publish

Collaborators

  • mbusenitz