{"repo":"bevry/cson","free":true,"listed":false,"github":"https://github.com/bevry/cson","clone":"git clone https://github.com/bevry/cson.git","description":"CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects.","language":"CoffeeScript","stars":1341,"topics":["cson","coffeescript","json","data-format","nodejs","executable"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"CSON CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects. Projects using CSON. Projects using CSON Parser directly. Since v2, this CSON package is a higher-level wrapper around the lower-level CSON Parser. What is CSON? Everyone knows JSON, it's the thing that looks like this: Now let's write the same thing in CSON: Which is far more lenient than JSON, way nicer to write and read, no need to quote and escape everything, has comments and readable multi-line strings, and won't fail if you forget a comma. Using CSON Via the Command Line Use CSON with the command line with: Requires a global CSON install: npm install -g cson Via the API Include CSON: Each method can be executed without a callback like so: Or via a callback like so: Executing the method with a callback still executes the method synchronously. Click the below function names to open more detailed documentation. Create Strings - String CSON.stringify (data, replacer?, indent?) Converts an Object into a CSON String - String CSON.createCSONString (data, opts?, next?) Converts an Object into a CSON String - String CSON.createJSONString (data, opts?, next?) Converts an Object into a JSON String - String CSON.createString (data, opts?, next?) Converts an Object into a String of the desired format If the format option is not specified, we default to CSON Parse Strings - Object CSON.parse (data, opts?, next?) Parses a CSON String into an Object - Object CSON.parseCSONString (data, opts?, next?) Parses a ","default_branch":null,"files":null,"tree":[],"storefront":"/r/bevry","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bevry/cson/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}