mpmxyz/Merge JSON with template

Creates or updates a JSON file based on a template

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
source-fileJSON Template that will be merged into the target file ($VAR/$(VAR) will be replaced without any substitution, $$ will become $)yes
target-fileJSON file to be mergedyes
source-pathPath within the source file that will be copied fromno""
target-pathPath within the target file that will be pasted into (sibling paths remain unchanged)no""
skipped-source-pathsPaths relative to the source path that will not be copied from (separated by newline and trimmed from surrounding whitespace, * to match all paths)no""
skipped-target-pathsPaths relative to the target path that will be removed unless overridden by the source file (separated by newline and trimmed from surrounding whitespace, * to match all paths)no""
appended-array-pathsPaths relative to the source and target that will merge by appending instead of overwriting (separated by newline and trimmed from surrounding whitespace, * to match all paths)no""
substitution-fileA JSON file with values that will substitute $KEYS within the template, overrides the default replacement with environment variablesno""

no outputs