Class CSON
| Defined in: | source/index.coffee |
Overview
The exported CSON singleton
Instance Method Summary
- String ::createCSONString(data, opts, next)
- String ::createJSONString(data, opts, next)
-
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)
-
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)
- Object ::parseCSString(data, opts, next)
-
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)
- Object ::parseJSString(data, opts, next)
-
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 ::createString(data, opts, next) Source
Object ::parseFile(data, opts, next) Source
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 ::parseString(data, opts, next) Source
Object ::requireCSFile(file, opts, next) Source
Requires a CoffeeScript file and returns the result Object
Object ::requireFile(data, opts, next) Source
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