Class CSON
Defined in: | src/lib/cson.coffee |
Overview
Instance Method Summary
- String ::createCSONString(data, opts, next) Converts an Object into a CSON String
- String ::createJSONString(data, opts, next) Converts an Object into a JSON String
- String ::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
- Object ::load(file, opts, next) Parses a CSON file into an Object
- Object ::parse(data, opts, next) Parses a CSON String into an Object
- Object ::parseCSFile(file, opts, next) Parses a CoffeeScript file into an Object
- Object ::parseCSONFile(file, opts, next) Parses a CSON file into an Object
- Object ::parseCSONString(data, opts, next) Parses a CSON String into an Object
- Object ::parseCSString(data, opts, next) Parses a CoffeeScript String into an Object
- Object ::parseFile(data, opts, next) Parses a file path of the desired format into an Object If the format option is not specified, we use the filename to detect what it should be, otherwise we default to CSON
- Object ::parseJSFile(file, opts, next) Parses a JAvaScript file into an Object
- Object ::parseJSONFile(file, opts, next) Parses a JSON file into an Object
- Object ::parseJSONString(data, opts, next) Parses a JSON String into an Object
- Object ::parseJSString(data, opts, next) Parses a JavaScript String into an Object
- Object ::parseString(data, opts, next) Converts a String of the desired format into an Object If the format option is not specified, we default to CSON
- Object ::requireCSFile(file, opts, next) Requires a CoffeeScript file and returns the result Object
- Object ::requireCSONFile(file, opts, next) Parses a CSON file into an Object
- Object ::requireFile(data, opts, next) Requires or parses a file path of the desired format into an Object If the format option is not specified, we use the filename to detect what it should be, otherwise we default to CSON
- Object ::requireJSFile(file, opts, next) Requires a JavaScript file and returns the result Object
- Object ::requireJSONFile(file, opts, next) Parses a JSON file into an Object
- String ::stringify(data, opts, next) Converts an Object into a String of the desired format If the format option is not specified, we default to CSON
Instance Method Details
String ::createCSONString(data, opts, next) Source
String ::createJSONString(data, opts, next) Source
String ::createString(data, opts, next) Source
Object ::load(file, opts, next) Source
Object ::parse(data, opts, next) Source
Object ::parseCSFile(file, opts, next) Source
Object ::parseCSONFile(file, opts, next) Source
Object ::parseCSONString(data, opts, next) Source
Object ::parseCSString(data, opts, next) Source
Object ::parseFile(data, opts, next) Source
Object ::parseJSFile(file, opts, next) Source
Object ::parseJSONFile(file, opts, next) Source
Object ::parseJSONString(data, opts, next) Source
Object ::parseJSString(data, opts, next) Source
Object ::parseString(data, opts, next) Source
Object ::requireCSFile(file, opts, next) Source
Object ::requireCSONFile(file, opts, next) Source
Object ::requireFile(data, opts, next) Source
Object ::requireJSFile(file, opts, next) Source
Object ::requireJSONFile(file, opts, next) Source
String ::stringify(data, opts, next) Source