← 全部工具

json-append

热度 65 更新于 开发与构建

command line tool that append item to array of json file.

npmauto-collected

安装

npm
npm install -g json-append

通过 npm 安装。

json-append

Append-only CLI that append item to JSON.

Installation

npm install json-append -g

Usage

$ printf 1 | json-append output.json && printf 2 | json-append output.json

output.json

[
  "1",
  "2"
]

Tests

npm test

Contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request :D

License

MIT