UNPKG

aoot

Version:

Converts an array of objects to and from data formats JSON, CSV, TSV, XML and YAML

6 lines (4 loc) 107 B
var yaml = require('yamljs'); module.exports = function toYAML(data) { return yaml.stringify(data, 4); }