uglify-es
=========
A JavaScript parser, mangler/compressor and beautifier toolkit for ES6+.
#### Note:
- **`uglify-es` is API/CLI compatible with `uglify-js@3`.**
- **`uglify-es` is not backwards compatible with `uglify-js@2`.**
Install
-------
First make sure you have installed the latest version of [node.js](http://nodejs.org/)
(You may need to restart your computer after this step).
From NPM for use as a command line app:
npm install uglify-es -g
From NPM for programmatic use:
npm install uglify-es
# Command line usage
uglifyjs [input files] [options]
UglifyJS can take multiple input files. It's recommended that you pass the
input files first, then pass the options. UglifyJS will parse input files
in sequence and apply any compression options. The files are parsed in the
same global scope, that is, a reference from a file to some
variable/function declared in another file will be matched properly.
If no input file is specified, UglifyJS will read from STDIN.
If you wish to pass your options before the input files, separate the two with
a double dash to prevent input files being used as option arguments:
uglifyjs --compress --mangle -- input.js
### Command line options
```
-h, --help Print usage information.
`--help options` for details on available options.
-V, --version Print version number.
-p, --parse <options> Specify parser options:
`acorn` Use Acorn for parsing.
`bare_returns` Allow return outside of functions.
Useful when minifying CommonJS
modules and Userscripts that may
be anonymous function wrapped (IIFE)
by the .user.js engine `caller`.
`expression` Parse a single expression, rather than
a program (for parsing JSON).
`spidermonkey` Assume input files are SpiderMonkey
AST format (as JSON).
-c, --compress [options] Enable compressor/specify compressor options:
`pure_funcs` List of functions that can be safely
removed when their return values are
not used.
-m, --mangle [options] Mangle names/specify mangler options:
`reserved` List of names that should not be mangled.
--mangle-props [options] Mangle properties/specify mangler options:
`builtins` Mangle property names that overlaps
with standard JavaScript globals.
`debug` Add debug prefix and suffix.
`domprops` Mangle property names that overlaps
with DOM properties.
`keep_quoted` Only mangle unquoted properties.
`regex` Only mangle matched property names.
`reserved` List of names that should not be mangled.
-b, --beautify [options] Beautify output/specify output options:
`beautify` Enabled with `--beautify` by default.
`preamble` Preamble to prepend to the output. You
can use this to insert a comment, for
example for licensing information.
This will not be parsed, but the source
map will adjust for its presence.
`quote_style` Quote style:
0 - auto
1 - single
2 - double
3 - original
`wrap_iife` Wrap IIFEs in parenthesis. Note: you may
want to disable `negate_iife` under
compressor options.
-o, --output <file> Output file path (default STDOUT). Specify `ast` or
`spidermonkey` to write UglifyJS or SpiderMonkey AST
as JSON to STDOUT respectively.
--comments [filter] Preserve copyright comments in the output. By
default this works like Google Closure, keeping
JSDoc-style comments that contain "@license" or
"@preserve". You can optionally pass one of the
following arguments to this flag:
- "all" to keep all comments
- a valid JS RegExp like `/foo/` or `/^!/` to
keep only matching comments.
Note that currently not *all* comments can be
kept when compression is on, because of dead
code removal or cascading statements into
sequences.
--config-file <file> Read `minify()` options from JSON file.
-d, --define <expr>[=value] Global definitions.
--ecma <version> Specify ECMAScript release: 5, 6, 7 or 8.
--ie8 Support non-standard Internet Explorer 8.
Equivalent to setting `ie8: true` in `minify()`
for `compress`, `mangle` and `output` options.
By default UglifyJS will not try to be IE-proof.
--keep-classnames Do not mangle/drop class names.
--keep-fnames Do not mangle/drop function names. Useful for
code relying on Function.prototype.name.
--name-cache <file> File to hold mangled name mappings.
--safari10 Support non-standard Safari 10/11.
Equivalent to setting `safari10: true` in `minify()`
for `mangle` and `output` options.
By default `uglify-es` will not work around
Safari 10/11 bugs.
--self Build UglifyJS as a library (implies --wrap UglifyJS)
--source-map [options] Enable source map/specify source map options:
`base` Path to compute relative paths from input files.
`content` Input source map, useful if you're compressing
JS that was generated from some other original
code. Specify "inline" if the source map is
included within the sources.
`filename` Name and/or location of the output source.
`includeSources` Pass this flag if you want to include
the content of source files in the
source map as sourcesContent property.
`root` Path to the original source to be included in
the source map.
`url` If specified, path to the source map to append in
`//# sourceMappingURL`.
--timings Disp
没有合适的资源?快使用搜索试试~ 我知道了~
自用小程序反编译工具,可用于解密和还原被加密的小程序代码,以便进行修改或者了解其实现细节
共779个文件
js:373个
json:82个
md:72个
需积分: 0 70 下载量 43 浏览量
2023-03-16
15:39:51
上传
评论 1
收藏 1.8MB ZIP 举报
温馨提示
小程序反编译工具软件是一种用于解析和还原微信小程序源代码的工具。它可以将小程序中的JavaScript代码、WXML文件和WXSS样式表等资源还原成可读性较高的格式,方便开发者进行分析和修改。 适用人群包括小程序开发者、安全研究人员、黑客等。使用场景主要是在需要对已发布的小程序进行修改或安全评估时,通过反编译工具还原源代码以便于分析和修改。 其目标是帮助开发者更好地理解小程序的实现细节,提高开发效率;同时也可以让安全研究人员和黑客更容易地发现潜在的漏洞和安全问题。 需要注意的是,反编译工具的使用可能会涉及到知识产权和法律问题,因此在使用前应该了解相关规定并谨慎使用。
资源推荐
资源详情
资源评论
收起资源包目录
自用小程序反编译工具,可用于解密和还原被加密的小程序代码,以便进行修改或者了解其实现细节 (779个子文件)
bingo.bat 671B
range.bnf 619B
LICENSE.BSD 1KB
LICENSE.BSD 1KB
LICENSE.BSD 1KB
LICENSE.BSD 1KB
ChangeLog 10KB
html-beautify.cmd 295B
css-beautify.cmd 294B
js-beautify.cmd 293B
editorconfig.cmd 289B
esgenerate.cmd 287B
cssbeautify.cmd 287B
escodegen.cmd 286B
esvalidate.cmd 285B
esparse.cmd 282B
uglifyjs.cmd 282B
semver.cmd 277B
nopt.cmd 276B
vm2.cmd 271B
css-beautify 354B
cssbeautify 2KB
cssbeautify 340B
editorconfig 344B
editorconfig 78B
escodegen 338B
esgenerate 340B
.eslintignore 8B
esparse 330B
esvalidate 336B
UnpackMiniApp.exe 41KB
props.html 2KB
tslib.es6.html 36B
tslib.html 32B
html-beautify 356B
geek_road.jpg 27KB
csstree.js 432KB
esprima.js 277KB
source-map.debug.js 266KB
compress.js 264KB
beautifier.js 213KB
csstree.min.js 164KB
beautify.js 144KB
parse.js 107KB
beautify-html.js 107KB
source-map.js 104KB
beautifier.min.js 100KB
escodegen.js 93KB
index.js 91KB
index.js 78KB
named-entity-data.js 72KB
output.js 64KB
beautifier.js 55KB
beautify-css.js 51KB
ast.js 41KB
source-map-consumer.js 40KB
semver.js 38KB
main.js 37KB
Tokenizer.js 35KB
beautifier.js 34KB
contextify.js 34KB
fnmatch.js 30KB
code.js 29KB
index.js 27KB
source-map.min.js 26KB
index.js 26KB
estraverse.js 26KB
manipulation.js 26KB
traversing.js 25KB
minimatch.js 25KB
scope.js 25KB
cli.js 24KB
cli.js 24KB
index.js 23KB
wuWxml.js 22KB
mozilla-ast.js 22KB
match.js 19KB
tokenizer.js 19KB
glob.js 19KB
attributes.js 19KB
index.js 18KB
sandbox.js 17KB
generic.js 16KB
parse.js 16KB
beautifier.js 15KB
cssbeautify.js 15KB
Lexer.js 15KB
List.js 15KB
tslib.js 14KB
source-map-generator.js 14KB
parse.js 14KB
source-node.js 13KB
wuWxss.js 13KB
node.js 13KB
util.js 13KB
List.js 13KB
index.js 12KB
match-graph.js 12KB
open-element-stack.js 12KB
Parser.js 12KB
共 779 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
weixin_45406834
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功