This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
JSFuckify/lib/index.js

12 lines
375 B
JavaScript
Raw Normal View History

2016-03-24 19:47:00 +00:00
var transformTools = require('browserify-transform-tools');
var transformer = require('./transformer');
const OPTIONS = {
excludeExtensions: ['.json']
};
module.exports = transformTools.makeStringTransform('jsfuckify', OPTIONS, function (content, transformOptions, done) {
const newContent = transformer(content, transformOptions.config);
done(null, newContent);
});