Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "cson", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "CoffeeScript-Object-Notation Parser. Same as JSON but for CoffeeScript objects", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/balupton/cson.npm", |
@@ -6,2 +6,36 @@ # CSON | ||
## What is CSON? | ||
Everyone knows JSON, it's the thing that looks like this: | ||
``` javascript | ||
{ | ||
"abc": [ | ||
"a", | ||
"b", | ||
"c" | ||
], | ||
"a": { | ||
"b": "c" | ||
} | ||
} | ||
``` | ||
But with the invention of CoffeeScript you can also write the same thing in CSON which looks like this: | ||
``` coffeescript | ||
{ | ||
abc: [ | ||
'a' | ||
'b' | ||
'c' | ||
] | ||
a: | ||
b: 'c' | ||
} | ||
``` | ||
Which is far more leniant than JSON, nicer to write and read, and won't fail if you forget a comma. | ||
## Installing | ||
@@ -17,4 +51,5 @@ | ||
## Using | ||
## Using CSON | ||
- With Node.js in JavaScript | ||
@@ -21,0 +56,0 @@ |
{ | ||
"abc": ["a", "b", "c"], | ||
"abc": [ | ||
"a", | ||
"b", | ||
"c" | ||
], | ||
"a": { | ||
@@ -4,0 +8,0 @@ "b": "c" |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
4885
9
101