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.1.0 to 1.2.0

15

lib/index.js

@@ -155,2 +155,17 @@ "use strict";

/**
* empty
* Empty the JSON file content.
*
* @name empty
* @function
* @param {Function} cb The callback function.
*/
}, {
key: "empty",
value: function empty(cb) {
return this.write("{}", cb);
}
/**
* save

@@ -157,0 +172,0 @@ * Save the file back to disk.

2

package.json

@@ -13,3 +13,3 @@ {

"license": "MIT",
"version": "1.1.0",
"version": "1.2.0",
"main": "lib/index.js",

@@ -16,0 +16,0 @@ "scripts": {

@@ -150,2 +150,9 @@ <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->

### `empty(cb)`
Empty the JSON file content.
#### Params
- **Function** `cb`: The callback function.
### `save(cb)`

@@ -185,3 +192,3 @@ Save the file back to disk.

I open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously,
I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,
this takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).

@@ -209,10 +216,15 @@

- [`easybackup`](https://npmjs.com/package/easybackup) (by Bruno Morceli - pirofagista@gmail.com)—Easy way to backup/restore multiple mongodb databases.
- [`fix-package-versions`](https://github.com/segux/fix-package-versions#readme) (by Jose Segura García)—This is the first approach to a fix package.json versions
- [`gyaon-cli`](https://npmjs.com/package/gyaon-cli) (by stkay)—
- [`hvn`](https://github.com/agrublev/hvn#readme) (by Angel Grablev)—The greatest tool on earth
- [`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
- [`live-stream-radio`](https://github.com/torch2424/live-stream-radio#readme) (by Aaron Turner)—24/7 live stream video radio station CLI / API
- [`lyo`](https://github.com/bokub/lyo) (by Boris K)—Node.js to browser - The easy way
- [`menreiki-init`](https://npmjs.com/package/menreiki-init)—用于创建menreiki项目骨架
- [`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.
- [`project-initializer`](https://npmjs.com/package/project-initializer) (by Linesh)—A command utility to different kinds of projects with different tech stacks.
- [`webify-generator`](https://github.com/sdantuoni/webify-generator#readme) (by Santiago D´Antuoni)—A web application generator

@@ -219,0 +231,0 @@ ## :scroll: License

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