
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
Read and modify JSONC documents. A CLI front-end for the jsonc-parser npm package
Read and modify JSONC documents (JSON with comments). A CLI front-end for the jsonc-parser npm package.
npm install -g jsonc-cli
jsonc <cmd> [args]
Commands:
jsonc modify Modify a JSONC document from stdin. Formatting options
are only applied to the injected JSON
jsonc format Format a JSONC document from stdin
jsonc read [JSONPath] Prints the JSON value at the given path in a JSONC
document from stdin
Options:
--version Show version number [boolean]
--help Show help [boolean]
echo '{"animal":"dog"}' | jsonc read '["animal"]' -r
will print dog
To print without newline add -n
echo '{"animal":"dog" // with some comments\n}' | jsonc format
will print
{
"animal": "dog" // with some comments
}
echo '{"animal":"dog"}' | jsonc modify -p '["animal"]' -v '"cat"'
will print
{"animal":"cat"}
echo '{"animal":"dog"}' | jsonc read '["animal"]' -r -f output.txt
cat output.txt # dog
It is important to add the -n when you modify to prevent additional trailing new lines to be added
cat .vscode/settings.json | jsonc modify -n -p '["typescript.tsdk"]' -v '"app/node_modules/typescript/lib"' -f .vscode/settings.json
FAQs
Read and modify JSONC documents. A CLI front-end for the jsonc-parser npm package
The npm package jsonc-cli receives a total of 157 weekly downloads. As such, jsonc-cli popularity was classified as not popular.
We found that jsonc-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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.