Comparing version
@@ -59,5 +59,7 @@ #!/usr/bin/env node | ||
} | ||
dot_json.save(); | ||
} | ||
else if (args['--delete']) { | ||
dot_json.delete(args['<key-path>']); | ||
dot_json.save(); | ||
} | ||
@@ -75,8 +77,2 @@ else { | ||
} | ||
try { | ||
dot_json.save(); | ||
} | ||
catch(e) { | ||
console.error(e.message); | ||
} | ||
} | ||
@@ -83,0 +79,0 @@ catch (e) { |
{ | ||
"name": "dot-json", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Easily edit a json file from the CLI or NodeJS", | ||
@@ -5,0 +5,0 @@ "main": "lib/dot-json.js", |
# dot-json | ||
[](https://travis-ci.org/crobays/dot-json) | ||
--- | ||
Easily edit a json file from the CLI or NodeJS. | ||
@@ -4,0 +6,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
35048
0.24%122
1.67%0
-100%1084
-0.37%