regexper-static/jest/yaml.js

8 lines
149 B
JavaScript
Raw Normal View History

const yaml = require('js-yaml');
module.exports = {
process(src) {
return `module.exports = ${ JSON.stringify(yaml.safeLoad(src)) };`;
}
};