🚀 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
1.0.6

@@ -9,5 +9,5 @@ var fs = require('fs');

var JSONFile = function (filename, raw) {
var hasTrailingNewline = (/\n\n$/).test(raw),
indentMatch = String(raw).match(/^[ \t]+/m),
indent = indentMatch ? indentMatch[0] : 2;
var hasTrailingNewline = (/\n\n$/).test(raw);
var indentMatch = String(raw).match(/^[ \t]+/m);
var indent = indentMatch ? indentMatch[0] : 2;

@@ -14,0 +14,0 @@ this.format = {

{
"name": "json-file-plus",
"version": "1.0.5",
"version": "1.0.6",
"author": "Jordan Harband",

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

"is": "~2.0.0",
"node.extend": "~1.1.0"
"node.extend": "~1.1.2"
},

@@ -35,3 +35,3 @@ "devDependencies": {

"covert": "~1.0.0",
"jscs": "~1.5.7"
"jscs": "~1.6.0"
},

@@ -38,0 +38,0 @@ "engines": {

#json-file-plus <sup>[![Version Badge][2]][1]</sup>
[![Build Status][3]][4] [![dependency status][5]][6] [![dev dependency status][7]][8]
[![Build Status][3]][4]
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

@@ -56,2 +60,6 @@ [![npm badge][9]][1]

[9]: https://nodei.co/npm/json-file-plus.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/json-file-plus.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/json-file-plus.svg
[downloads-url]: https://npmjs.org/package/json-file-plus