Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 591 Bytes

.verb.md

File metadata and controls

42 lines (30 loc) · 591 Bytes

Usage

Add to your javascript/node.js application with the following line of code:

var yaml = require('{%= name %}');

async

var data = {language: 'node_js', node_js: ['0.10', '0.11']};

yaml('.travis.yml', data, function(err) {
  // do stuff with err
});

Would write .travis.yml to disk with the following contents:

language: node_js
node_js:
  - "0.10"
  - "0.11"

sync

yaml.sync('.travis.yml', data);

Would write .travis.yml to disk with the following contents:

language: node_js
node_js:
  - "0.10"
  - "0.11"