ender-minify
Advanced tools
+8
-5
@@ -36,6 +36,6 @@ /*! | ||
| ] | ||
| , LEVELS = { | ||
| advanced : 'ADVANCED_OPTIMIZATIONS' | ||
| , levels = { | ||
| whitespace : 'WHITESPACE_ONLY' | ||
| , simple : 'SIMPLE_OPTIMIZATIONS' | ||
| , whitespace : 'WHITESPACE_ONLY' | ||
| , advanced : 'ADVANCED_OPTIMIZATIONS' | ||
| } | ||
@@ -50,3 +50,3 @@ , reMultiComments = /\/\*!([\s\S]*?)\*\//g | ||
| , comments = [] | ||
| , level = LEVELS[LEVELS.hasOwnProperty(options.level) ? options.level : 'simple'] | ||
| , level = levels[levels.hasOwnProperty(options.level) ? options.level : 'simple'] | ||
| , externs = options.externs | ||
@@ -93,2 +93,5 @@ ? options.externs.map(function (p) { return '--externs=' + p }).join(' ') | ||
| module.exports.minify = minify | ||
| module.exports = { | ||
| minify : minify | ||
| , levels : Object.keys(levels) | ||
| } |
+3
-2
@@ -39,4 +39,5 @@ /*! | ||
| module.exports = { | ||
| minify : minify | ||
| , minifiers : Object.keys(minifiers) | ||
| minify : minify | ||
| , minifiers : Object.keys(minifiers) | ||
| , closureLevels : minifiers.closure.levels | ||
| } |
| { | ||
| "name": "ender-minify", | ||
| "version": "0.0.0", | ||
| "version": "0.0.1", | ||
| "dependencies": { | ||
@@ -5,0 +5,0 @@ "uglify-js": { |
+1
-1
| { | ||
| "name": "ender-minify" | ||
| , "description": "Interface to UglifyJS Closure Compiler and YUICompressor" | ||
| , "version": "0.0.0" | ||
| , "version": "0.0.1" | ||
| , "authors": [ | ||
@@ -6,0 +6,0 @@ "Rod Vagg @rvagg <rod@vagg.org> (https://github.com/rvagg)" |
@@ -49,2 +49,6 @@ /*! | ||
| , 'test closure levels': function () { | ||
| assert.equals(main.closureLevels, [ 'whitespace', 'simple', 'advanced' ]) | ||
| } | ||
| , 'test uglify': function (done) { | ||
@@ -51,0 +55,0 @@ runTest('uglify', done) |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
5438377
0780
0.91%