11 lines
377 B
JavaScript
Executable file
11 lines
377 B
JavaScript
Executable file
const transformTools = require('browserify-transform-tools');
|
|
const transformer = require('./transformer');
|
|
|
|
const OPTIONS = {
|
|
excludeExtensions: ['.json']
|
|
};
|
|
|
|
module.exports = transformTools.makeStringTransform('jsfuckify', OPTIONS, function (content, transformOptions, done) {
|
|
var newContent = transformer(content, transformOptions.config);
|
|
done(null, newContent);
|
|
});
|