edit-json-file
Advanced tools
Comparing version 1.0.8 to 1.1.0
@@ -91,2 +91,18 @@ "use strict"; | ||
/** | ||
* unset | ||
* Remove a path from a JSON object. | ||
* | ||
* @name unset | ||
* @function | ||
* @param {String} path The object path. | ||
* @returns {JsonEditor} The `JsonEditor` instance. | ||
*/ | ||
}, { | ||
key: "unset", | ||
value: function unset(path) { | ||
return this.set(path, undefined); | ||
} | ||
/** | ||
* read | ||
@@ -93,0 +109,0 @@ * Read the JSON file. |
@@ -13,3 +13,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.8", | ||
"version": "1.1.0", | ||
"main": "lib/index.js", | ||
@@ -16,0 +16,0 @@ "scripts": { |
@@ -118,2 +118,12 @@ <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. --> | ||
### `unset(path)` | ||
Remove a path from a JSON object. | ||
#### Params | ||
- **String** `path`: The object path. | ||
#### Return | ||
- **JsonEditor** The `JsonEditor` instance. | ||
### `read(cb)` | ||
@@ -196,5 +206,12 @@ Read the JSON file. | ||
- [`bloggify-tools`](https://github.com/Bloggify/bloggify-tools)—Interactive command line tool to help you win at Bloggify. | ||
- [`deyarn`](https://npmjs.com/package/deyarn) (by Spencer Brown)—A command-line tool for converting projects that use Yarn to npm. | ||
- [`easybackup`](https://npmjs.com/package/easybackup) (by Bruno Morceli - pirofagista@gmail.com)—Easy way to backup/restore multiple mongodb databases. | ||
- [`gyaon-cli`](https://npmjs.com/package/gyaon-cli) (by stkay)— | ||
- [`jollof-cli`](https://npmjs.com/package/jollof-cli) (by Iyobo Eki)—The Entry point to creating and working with Jollof Projects | ||
- [`jollofjs`](https://npmjs.com/package/jollofjs) (by Iyobo Eki)—The Entry point to creating and working with Jollof Projects | ||
- [`menreiki`](https://github.com/bloody-ux/menreiki#readme) (by Nada)—ssr with react | ||
- [`menreiki2`](http://gitlab.alipay-inc.com/oc/spa#readme) (by 汗僧)—ssr with react | ||
- [`pandocuments`](https://github.com/kontheocharis/pandocuments#readme) (by Constantine Theocharis)—A pandoc helper to quickly initialize school papers (very opinionated) | ||
- [`pipe-boy`](https://github.com/slammayjammay/pipe-boy#readme) (by Scott McKenzie)—Interactive CLI to pass output from one command as input to another | ||
- [`sheetbase-cli`](https://github.com/316Company/sheetbase-cli#readme) (by 316 Company)—Official CLI for working with Sheetbase projects. | ||
@@ -201,0 +218,0 @@ ## :scroll: License |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16082
176
233