cli-json-edit

0.0.14 • Public • Published

This CLI let you manipulate json files.

Usage: json-edit-cli [options] [command]

Options:

-V, --version        output the version number

-h, --help           display help for command

Commands:

set [options]        set string or number value to specific key in json file
set-array [options]  set array value to specific key in json file
unset [options]      unset value of specific key in json file
help [command]       display help for command

Examples:

  • json-edit-cli set -f './file.json' -k 'name' -v 'Joe Doe'

  • json-edit-cli set -f './file.json' -k 'personal.firstName' -v 'Doe'

  • json-edit-cli set -f './file.json' -k 'age' -v 30

  • json-edit-cli set-array -f './file.json' -k 'interests' -v 'bicycle,football'

  • json-edit-cli unset -f 'file.json' -k 'interests'

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.140latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.140
0.0.130
0.0.120
0.0.110
0.0.100
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i cli-json-edit

Weekly Downloads

0

Version

0.0.14

License

ISC

Unpacked Size

3.96 kB

Total Files

3

Last publish

Collaborators

  • branecko