Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 894 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 894 Bytes

Build Status npm version

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