From dab51ac52a2c89a9a34c8ad97c18ea7aa281499e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 25 Mar 2016 12:28:42 +0000 Subject: [PATCH] Use partial ES6 --- lib/index.js | 8 ++++---- lib/transformer.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/index.js b/lib/index.js index cf362ff..5fe0584 100755 --- a/lib/index.js +++ b/lib/index.js @@ -1,11 +1,11 @@ -var transformTools = require('browserify-transform-tools'); -var transformer = require('./transformer'); +const transformTools = require('browserify-transform-tools'); +const transformer = require('./transformer'); -var OPTIONS = { +const OPTIONS = { excludeExtensions: ['.json'] }; module.exports = transformTools.makeStringTransform('jsfuckify', OPTIONS, function (content, transformOptions, done) { - var newContent = transformer(content, transformOptions.config); + let newContent = transformer(content, transformOptions.config); done(null, newContent); }); diff --git a/lib/transformer.js b/lib/transformer.js index 9769a94..0ad67c6 100644 --- a/lib/transformer.js +++ b/lib/transformer.js @@ -1,5 +1,5 @@ -var jscrewit = require('jscrewit'); -var DEFAULT_OPTIONS = require('./default-options'); +const jscrewit = require('jscrewit'); +const DEFAULT_OPTIONS = require('./default-options'); module.exports = function transformer(content) { return jscrewit.encode(content, DEFAULT_OPTIONS);