0.1.15 • Published 7 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
7 years ago
0.1.14
7 years ago
0.1.13
7 years ago
0.1.12
7 years ago
0.1.11
7 years ago
0.1.10
7 years ago
0.1.9
7 years ago
0.1.8
7 years ago
0.1.7
7 years ago
0.1.6
7 years ago
0.1.5
7 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago