UNPKG

@pryv/boiler

Version:

Logging and config boilerplate library for Node.js apps and services at Pryv

14 lines (11 loc) 292 B
/** * @license * [BSD-3-Clause](https://github.com/pryv/pryv-boiler/blob/master/LICENSE) */ const yaml = require('js-yaml'); exports.stringify = function (obj, options) { return yaml.dump(obj, options); }; exports.parse = function (obj, options) { return yaml.load(obj, options); };