james-cson
Version:
James plugin to compile CSON to JSON.
23 lines (16 loc) • 558 B
Markdown
[](https://travis-ci.org/leonidas/james-cson)
[](https://github.com/bevry/cson) to JSON transformer for [James.js](https://github.com/leonidas/james.js).
```javascript
var james = require('james'),
cson = require('james-cson');
james.task('default', function() {
james.files('src/**/*.cson').forEach(function(file) {
james.read(file)
.transform(cson)
.write(process.stdout);
});
});
```
`cson(options)`: Return a new CSON to JSON transformer.