{"_id":"esshorten","_rev":"227680","name":"esshorten","description":"Shorten (mangle) names in JavaScript code","dist-tags":{"latest":"1.1.1"},"maintainers":[{"name":"constellation","email":"utatane.tea@gmail.com"},{"name":"michaelficarra","email":"npm@michael.ficarra.me"}],"time":{"modified":"2021-06-03T15:43:50.000Z","created":"2013-08-04T16:29:45.617Z","1.1.1":"2015-10-24T15:56:37.109Z","1.1.0":"2014-02-07T19:38:21.209Z","1.0.0":"2013-11-25T11:35:30.073Z","0.0.2":"2013-08-17T06:41:37.512Z","0.0.1":"2013-08-04T16:29:45.617Z"},"users":{},"repository":{"type":"git","url":"git+ssh://git@github.com/estools/esshorten.git"},"versions":{"1.1.1":{"name":"esshorten","description":"Shorten (mangle) names in JavaScript code","main":"lib/esshorten.js","version":"1.1.1","engines":{"node":">=0.6.0"},"directories":{"lib":"./lib"},"maintainers":[{"name":"constellation","email":"utatane.tea@gmail.com"},{"name":"michaelficarra","email":"npm@michael.ficarra.me"}],"repository":{"type":"git","url":"git+ssh://git@github.com/estools/esshorten.git"},"dependencies":{"estraverse":"~4.1.1","escope":"~1.0.1","esutils":"~2.0.2"},"devDependencies":{"chai":"*","commonjs-everywhere":"~0.9.7","jshint-stylish":"~2.0.1","gulp-mocha":"~2.1.3","gulp-jshint":"~1.11.2","gulp":"~3.9.0","coffee-script":"~1.10.0"},"licenses":[{"type":"BSD","url":"http://github.com/estools/esshorten/raw/master/LICENSE.BSD"}],"scripts":{"test":"gulp travis","lint":"gulp lint","unit-test":"gulp test"},"gitHead":"213bac0e0a321d4ab837d3ee7c93433c5cd67763","bugs":{"url":"https://github.com/estools/esshorten/issues"},"homepage":"https://github.com/estools/esshorten#readme","_id":"esshorten@1.1.1","_shasum":"174f96b7cc267e46872d814e7db7c290bdff61a9","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"constellation","email":"utatane.tea@gmail.com"},"dist":{"shasum":"174f96b7cc267e46872d814e7db7c290bdff61a9","size":5217,"noattachment":false,"key":"/esshorten/-/esshorten-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/esshorten/download/esshorten-1.1.1.tgz"},"publish_time":1445702197109,"_cnpm_publish_time":1445702197109,"_hasShrinkwrap":false},"1.1.0":{"name":"esshorten","description":"Shorten (mangle) names in JavaScript code","main":"lib/esshorten.js","version":"1.1.0","engines":{"node":">=0.6.0"},"directories":{"lib":"./lib"},"maintainers":[{"name":"constellation","email":"utatane.tea@gmail.com"},{"name":"michaelficarra","email":"npm@michael.ficarra.me"}],"repository":{"type":"git","url":"http://github.com/Constellation/esshorten.git"},"dependencies":{"estraverse":"~1.5.0","escope":"~1.0.1","esutils":"~1.0.0"},"devDependencies":{"chai":"*","commonjs-everywhere":"0.8.x","jshint-stylish":"~0.1.5","gulp-mocha":"~0.4.1","gulp-jshint":"~1.4.0","gulp":"~3.5.2","coffee-script":"~1.7.1"},"licenses":[{"type":"BSD","url":"http://github.com/Constellation/esshorten/raw/master/LICENSE.BSD"}],"scripts":{"test":"gulp travis","lint":"gulp lint","unit-test":"gulp test"},"bugs":{"url":"https://github.com/Constellation/esshorten/issues"},"homepage":"https://github.com/Constellation/esshorten","_id":"esshorten@1.1.0","dist":{"shasum":"6f0c22ae6cc3119da0b18b835813e8f26c1abacc","size":5237,"noattachment":false,"key":"/esshorten/-/esshorten-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/esshorten/download/esshorten-1.1.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"constellation","email":"utatane.tea@gmail.com"},"publish_time":1391801901209,"_cnpm_publish_time":1391801901209,"_hasShrinkwrap":false},"1.0.0":{"name":"esshorten","description":"Shorten (mangle) names in JavaScript code","main":"lib/esshorten.js","version":"1.0.0","engines":{"node":">=0.6.0"},"directories":{"lib":"./lib"},"maintainers":[{"name":"constellation","email":"utatane.tea@gmail.com"},{"name":"michaelficarra","email":"npm@michael.ficarra.me"}],"repository":{"type":"git","url":"http://github.com/Constellation/esshorten.git"},"dependencies":{"escope":"~ 0.0.14","estraverse":"~ 1.2.0","esutils":"~ 1.0.0"},"devDependencies":{"chai":"*","commonjs-everywhere":"0.8.x","grunt":"~0.4.1","grunt-cli":"~0.1.7","grunt-contrib-jshint":"~0.6.0","grunt-mocha-test":"~0.5.0"},"licenses":[{"type":"BSD","url":"http://github.com/Constellation/esshorten/raw/master/LICENSE.BSD"}],"scripts":{"test":"grunt travis","lint":"grunt lint","unit-test":"grunt test"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/Constellation/esshorten/issues"},"_id":"esshorten@1.0.0","dist":{"shasum":"ffdf21c65dabdd79b1073c48a67b9ab39843d945","size":5006,"noattachment":false,"key":"/esshorten/-/esshorten-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/esshorten/download/esshorten-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"constellation","email":"utatane.tea@gmail.com"},"publish_time":1385379330073,"_cnpm_publish_time":1385379330073,"_hasShrinkwrap":false},"0.0.2":{"name":"esshorten","description":"Shorten (mangle) names in JavaScript code","main":"lib/esshorten.js","version":"0.0.2","engines":{"node":">=0.6.0"},"directories":{"lib":"./lib"},"maintainers":[{"name":"constellation","email":"utatane.tea@gmail.com"},{"name":"michaelficarra","email":"npm@michael.ficarra.me"}],"repository":{"type":"git","url":"http://github.com/Constellation/esshorten.git"},"dependencies":{"escope":"~ 1.0.0","estraverse":"~ 1.2.0"},"devDependencies":{"chai":"*","commonjs-everywhere":"0.8.x","grunt":"~0.4.1","grunt-cli":"~0.1.7","grunt-contrib-jshint":"~0.6.0","grunt-mocha-test":"~0.5.0"},"licenses":[{"type":"BSD","url":"http://github.com/Constellation/esshorten/raw/master/LICENSE.BSD"}],"scripts":{"test":"grunt travis","lint":"grunt lint","unit-test":"grunt test"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/Constellation/esshorten/issues"},"_id":"esshorten@0.0.2","dist":{"shasum":"28a652f1efd40c8e227f8c6de7dbe6b560ee8129","size":5476,"noattachment":false,"key":"/esshorten/-/esshorten-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/esshorten/download/esshorten-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"constellation","email":"utatane.tea@gmail.com"},"publish_time":1376721697512,"_cnpm_publish_time":1376721697512,"_hasShrinkwrap":false},"0.0.1":{"name":"esshorten","description":"Shorten (mangle) names in JavaScript code","main":"lib/esshorten.js","version":"0.0.1","engines":{"node":">=0.6.0"},"directories":{"lib":"./lib"},"maintainers":[{"name":"constellation","email":"utatane.tea@gmail.com"},{"name":"michaelficarra","email":"npm@michael.ficarra.me"}],"repository":{"type":"git","url":"http://github.com/Constellation/esshorten.git"},"dependencies":{"escope":"~ 0.0.14","estraverse":"~ 1.2.0"},"devDependencies":{"chai":"*","commonjs-everywhere":"0.8.x","grunt":"~0.4.1","grunt-cli":"~0.1.7","grunt-contrib-jshint":"~0.6.0","grunt-mocha-test":"~0.5.0"},"licenses":[{"type":"BSD","url":"http://github.com/Constellation/esshorten/raw/master/LICENSE.BSD"}],"scripts":{"test":"grunt travis","lint":"grunt lint","unit-test":"grunt test"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/Constellation/esshorten/issues"},"_id":"esshorten@0.0.1","dist":{"shasum":"660aa9b0dfc274fe3b03951e7484c012fd164a17","size":5382,"noattachment":false,"key":"/esshorten/-/esshorten-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/esshorten/download/esshorten-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"constellation","email":"utatane.tea@gmail.com"},"publish_time":1375633785617,"_cnpm_publish_time":1375633785617,"_hasShrinkwrap":false}},"readme":"### esshorten\n\nesshorten provides name mangler, this shorten names in JavaScript code. mangler accepts JavaScript AST and generate modified AST with shortened names.\n\n### usage\n\nWe can use this with,\n\n```js\nesshorten.mangle(AST);\n```\n\nAnd we can pass options to mangler,\n\n```js\nesshorten.mangle(AST, {\n    // If false, AST is copied deeply (default: true)\n    destructive: false,\n    // If false, avoid [JSC bug](https://github.com/mozilla/sweet.js/issues/138) (default: false)\n    distinguishFunctionExpressionScope: false\n});\n```\n\nWhen destructive option is set to false, esshorten copies AST and modifies it.\n\n### license\n\nCopyright (C) 2013 [Yusuke Suzuki](http://github.com/Constellation)\n (twitter: [@Constellation](http://twitter.com/Constellation)) and other contributors.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n  * Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n\n  * Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in the\n    documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\nTHIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","_attachments":{},"homepage":"https://github.com/estools/esshorten#readme","bugs":{"url":"https://github.com/estools/esshorten/issues"}}