0.0.3 • Published 9 years ago
broccoli-yaml v0.0.3
broccoli-yaml
A Broccoli filter that converts YAML to JSON using js-yaml
Install
$ npm install --save broccoli-yaml
Usage
var yaml2json = require('broccoli-yaml');
var locales = yaml2json('config/locales', { space: 2});
API
yaml(tree, opts)
Transpile a YAML 1.2 document into a corresponding JSON document. Optionally supply an object with options as the last argument.
Options
space
Type: Number
Default: 4
Accepts a number that defines the indentation level for JSON pretty print.
License
MIT © Above Property