putout
Version:
🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json
18 lines (14 loc) • 373 B
JavaScript
;
const {transform, transformAsync} = require('./transform');
module.exports.findPlaces = (ast, source, opts) => {
return transform(ast, source, {
...opts,
fix: false,
});
};
module.exports.findPlacesAsync = async (ast, source, opts) => {
return await transformAsync(ast, source, {
...opts,
fix: false,
});
};