1.2.2 • Published 11 months ago

jscedit v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

jscedit

Edit JSONC files eg: VS Code's settings.json.

JSONC files are JSON but can contain comments and trailing commas. They are a VS Code specific file format.

Uses microsoft/node-jsonc-parser which is more or less the jsonc parser within vscode.

Usage

Add/modify the setting to auto-save files after a delay:

npx jscedit settings.json '{"files.autoSave": "afterDelay"}'

Read/write from stdin/stdout:

printf '{ # comment\n"foo" : "bar", }' | npx jscedit - '{ "k1": "v1" }'
{ # comment
"foo": "bar",
"k1": "v1",
}
1.2.2

11 months ago

1.2.1

11 months ago

1.2.0

11 months ago

1.1.0

11 months ago

1.0.0

11 months ago