🚀 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.2

@@ -50,7 +50,6 @@ var fs = require('fs');

}
fs.readFile(filename, function (err, rawBuf) {
var file, raw;
fs.readFile(filename, { encoding: 'utf8' }, function (err, raw) {
var file;
if (!err) {
raw = rawBuf.toString('utf8');
try { file = new JSONFile(filename, raw); }

@@ -57,0 +56,0 @@ catch (e) { err = e; }

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

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

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

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