Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

edit-json-file

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edit-json-file - npm Package Compare versions

Comparing version 1.0.8 to 1.1.0

16

lib/index.js

@@ -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.

2

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc