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

hjson

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hjson - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

test/asset/comments_result.json

6

lib/hjson.js

@@ -63,3 +63,2 @@ /*

var hjson_EOL = '\n';
var hjson_bracesSameLine = false;

@@ -284,3 +283,3 @@

// Hjson allows comments
if (ch === "#")
if (ch === "#" || ch === "/" && peek(0) === "/")
{

@@ -754,4 +753,5 @@ while (ch && ch !== '\n') next();

setEndOfLine: function(eol) { hjson_EOL = eol; },
setBracesSameLine: function(v) { hjson_bracesSameLine = v; }
bracesSameLine: function() { return hjson_bracesSameLine; },
setBracesSameLine: function(v) { hjson_bracesSameLine = v; },
};
}
{
"name": "hjson",
"description": "JSON - commas + comments for Humans (use for configuration/debugging)",
"description": "JSON for Humans, allows comments and is less error prone.",
"main": "./lib/hjson.js",
"author": "Christian Zangl",
"version": "1.0.2",
"version": "1.1.0",
"tags":

@@ -15,4 +15,4 @@ [

"json",
"comments",
"config",
"comments",
"hjson",

@@ -30,2 +30,5 @@ "parser",

},
"pre-push": [
"npm test"
],
"homepage": "http://laktak.github.io/hjson",

@@ -32,0 +35,0 @@ "repository":

@@ -5,3 +5,3 @@ # hjson-js

For details and syntax see http://laktak.github.io/hjson.
It supports `#` and `//` style comments as well as avoiding trailing comma and other mistakes. For details and syntax see http://laktak.github.io/hjson.

@@ -8,0 +8,0 @@ # Install from npm

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