amochkin/Manipulate JSON files

Reads or writes a value of a property specified as dot-separated path from defined JSON file

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
filePath to JSON file; default is `package.json`package.json
modeMode of operation (`read`/`write`/`delete`); default is `read`read
propertyDot-separated path to property (for example `a.b`)`yes
valueValue to write to property, required for `write` mode
value_typeType of value to write to property (`string`/`number`/`boolean`/`object`); default is `string`string
quietDo not output value to the log; default is `false`false
fallbackFallback file to use if file is not found
override_withOverride read value with this value
use_overrideFlag: Use override value instead of read valuefalse
output_nameName of output variable to usevalue
output_filePath to file to write output value to. Defaults to the same file as input (write in-place)
namedescription
valueValue of property (only if mode is `read`). Can be override with `output_name` input.