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.
2016-03-25 12:28:42 +00:00
|
|
|
const transformTools = require('browserify-transform-tools');
|
|
|
|
const transformer = require('./transformer');
|
2016-03-24 19:47:00 +00:00
|
|
|
|
2016-03-25 12:28:42 +00:00
|
|
|
const OPTIONS = {
|
2016-03-24 19:47:00 +00:00
|
|
|
excludeExtensions: ['.json']
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = transformTools.makeStringTransform('jsfuckify', OPTIONS, function (content, transformOptions, done) {
|
2016-03-25 13:04:14 +00:00
|
|
|
var newContent = transformer(content, transformOptions.config);
|
2016-03-24 19:47:00 +00:00
|
|
|
done(null, newContent);
|
|
|
|
});
|