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

node-json-minify

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-json-minify - npm Package Compare versions

Comparing version 0.1.3-a to 0.1.4-a

PORTING.md

11

json.minify.js
/*! JSON.minify()
v0.1.3-a (c) Kyle Simpson
v0.1.4-a (c) Kyle Simpson
MIT License

@@ -7,3 +7,3 @@ */

module.exports = function(json) {
var tokenizer = /"|(\/\*)|(\*\/)|(\/\/)|\n|\r/g,

@@ -15,5 +15,5 @@ in_string = false,

;
tokenizer.lastIndex = 0;
while (tmp = tokenizer.exec(json)) {

@@ -30,3 +30,3 @@ lc = RegExp.leftContext;

from = tokenizer.lastIndex;
if (tmp[0] == "\"" && !in_multiline_comment && !in_singleline_comment) {

@@ -59,2 +59,1 @@ tmp2 = lc.match(/(\\)*$/);

};
{
"name": "node-json-minify",
"version": "0.1.4-a",
"description": "minifies blocks of JSON-like content into valid JSON by removing all whitespace *and* comments",
"keywords": ["util","functional","json", "minify"],
"main": "json.minify.js",
"scripts": {
"test": "node tests.js"
},
"keywords": ["util", "json", "minify"],
"author": "Kyle Simpson <getify@gmail.com>",

@@ -12,5 +17,3 @@ "contributors": [

],
"repository" : {"type": "git", "url": "git://github.com/getify/JSON.minify.git"},
"main": "json.minify.js",
"version": "0.1.3-a"
"repository": "git://github.com/getify/JSON.minify.git"
}
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