🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

json-file-plus

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-file-plus - npm Package Compare versions

Comparing version

to
0.2.1

{
"name": "json-file-plus",
"version": "0.2.0",
"version": "0.2.1",
"author": "Jordan Harband",

@@ -27,3 +27,3 @@ "description": "Read from and write to a JSON file, minimizing diffs and preserving formatting.",

"devDependencies": {
"tape": "~1.0.4",
"tape": "~1.1.0",
"foreach": "~2.0.4",

@@ -30,0 +30,0 @@ "object-keys": "~0.4.0"

@@ -12,3 +12,3 @@ #json-file-plus <sup>[![Version Badge][2]][1]</sup>

var filename = path.join(process.cwd(), 'package.json');
jsonFile.read(filename, function (err, file) {
jsonFile(filename, function (err, file) {
if (err) { return doSomethingWithError(err); }

@@ -15,0 +15,0 @@