
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
json-edit-cli
Advanced tools
Quickly manipulate JSON file values from the command line
$ npm install -g json-edit-cli
$ json COMMAND
running command...
$ json (-v|--version|version)
json-edit-cli/0.1.1 win32-x64 node-v10.15.3
$ json --help [COMMAND]
USAGE
$ json COMMAND
...
json copy [FILE]describe the command here
USAGE
$ json copy [FILE]
OPTIONS
-f, --force
-h, --help show CLI help
-n, --name=name name to print
See code: src\commands\copy.ts
json del [FILE]describe the command here
USAGE
$ json del [FILE]
OPTIONS
-V, --verbose Enable verbose output:
- Prints full JSON structure, with edits made.
-h, --help show CLI help
-k, --key=key (required) Designate the property accessor/key path string. May access nested properties by using
dot-notation. For example,
--key="property.nested-property" will allow access to the "nested-property" field of "property"
-y, --yes Skip confirmation and remove the property from the JSON structure
See code: src\commands\del.ts
json get PATH [ACCESSOR]Inspect a full JSON file, or specific property within.
USAGE
$ json get PATH [ACCESSOR]
ARGUMENTS
PATH An absolute or relative path pointing to a JSON file
ACCESSOR Property to retrieve from the file. May use dot-notation to reference nested values. If omitted, the full
JSON object is printed.
OPTIONS
-h, --help show CLI help
--no-color Control use of colors. Defaults to true
See code: src\commands\get.ts
json help [COMMAND]display help for json
USAGE
$ json help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
json set [FILE]DESCRIPTION
USAGE
$ json set [FILE]
OPTIONS
-V, --verbose Enable verbose output:
- Prints full JSON structure, with edits made.
-h, --help show CLI help
-k, --key=key (required) Designate the property accessor/key path string. May access nested properties by using
dot-notation. For example,
--key="property.nested-property" will allow access to the "nested-property" field within the
object at "property"
-v, --value=value (required) Designate the new value. Values will be de-serialized with JSON.parse; For example,
--value "{ \"key\": \"value\" }"
DESCRIPTION
Set the value for a new or existing property key in a JSON file.
See code: src\commands\set.ts
FAQs
Quickly manipulate JSON file values from the command line
We found that json-edit-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.