regexper-static/jest/yaml.js
2019-03-23 18:51:32 -04:00

8 lines
149 B
JavaScript

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