0.1.15 • Published 6 years ago
json-migrate v0.1.15
json-migrate
Tool for making changes of JSON-files with... other JSON files.
Installation and running
requirements
- node version >= 8
install
$ npm install -g json-migrate
run
$ json-migrate
Example use case
Say you have the following simple JSON
{
"property1": {
"innerProperty1": "value1"
}
}
And want to add a property innerProperty2
inside property1
, like below:
{
"property1": {
"innerProperty1": "value1",
"innerProperty2": "value2"
}
}
You can define a mutation operation of type ADD
, like so:
{
"mutations": [
{
"type": "ADD",
"definition": {
"to": "property1.innerProperty2",
"value": "value2"
}
}
]
}
Running the tool with the above mutation definition will make the wanted changes.
Available CLI commands (TODO)
Mutations (TODO)
0.1.15
6 years ago
0.1.14
6 years ago
0.1.13
6 years ago
0.1.12
6 years ago
0.1.11
6 years ago
0.1.10
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.13
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago