Comparing version 1.0.2 to 1.1.0
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30434
21
745