edit-json-file
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -13,3 +13,3 @@ { | ||
"license": "MIT", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"main": "lib/index.js", | ||
@@ -16,0 +16,0 @@ "scripts": { |
@@ -56,2 +56,3 @@ | ||
file.set("planet", "Earth"); | ||
file.set("city\\.name", "anytown"); | ||
file.set("name.first", "Johnny"); | ||
@@ -61,5 +62,7 @@ file.set("name.last", "B."); | ||
// Output the content | ||
console.log(file.get()); | ||
// { planet: 'Earth', | ||
// city.name: 'anytown', | ||
// name: { first: 'Johnny', last: 'B.' }, | ||
@@ -66,0 +69,0 @@ // is_student: false } |
12552
214