jamesknelson / meteor-yaml

Meteor smart package for YAML parsing/generation
MIT License
2 stars 5 forks source link

YAML

This smart package lets you parse and generate YAML within a meteor app. It will also automatically load all .yaml files in your project, parse them into javascript objects, and make them available at YAML.data.

It is based on yaml.js by jeremyfa.

Installation

mrt add yaml

Usage

YAML.parse(text);

Parses the YAML given by text and returns it as a javascript object.

YAML.stringify(array, inline, spaces);

Attempts to return the given array as a yaml string.

Parameters: