UNPKG

sbp-utils-yml-to-json

Version:

Small repo which reads yaml file(s) from a directory and returns a json object

18 lines (13 loc) 359 B
var yamlUtil = require('../index'); // var json = yamlUtil.dirToJson('./test/test-folder'); var pipeline = { getWorkDirPath: function() { return undefined; }, setKey: function(key, value){ console.log(key); console.log(value); } }; yamlUtil.run(pipeline, { readPath: './test/test-folder' }); console.log(yamlUtil);