All files / lib/utils format.js

66.66% Statements 4/6
100% Branches 0/0
0% Functions 0/2
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 72x   2x 2x   2x  
const YAML = require('js-yaml');
 
const yaml2js = (yaml) => YAML.load(yaml.replace(/\t/gm, ' '));
const js2yaml = (js) => YAML.dump(js);
 
module.exports = { yaml2js, js2yaml };