<h1><img src="https://terser.org/img/terser-banner-logo.png" alt="Terser" width="400"></h1>
[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![CI pipeline][ci-image]][ci-url]
[![Opencollective financial contributors][opencollective-contributors]][opencollective-url]
A JavaScript mangler/compressor toolkit for ES6+.
*note*: <s>You can support this project on patreon: [link]</s> **The Terser Patreon is shutting down in favor of opencollective**. Check out [PATRONS.md](https://github.com/terser/terser/blob/master/PATRONS.md) for our first-tier patrons.
Terser recommends you use RollupJS to bundle your modules, as that produces smaller code overall.
*Beautification* has been undocumented and is *being removed* from terser, we recommend you use [prettier](https://npmjs.com/package/prettier).
Find the changelog in [CHANGELOG.md](https://github.com/terser/terser/blob/master/CHANGELOG.md)
[npm-image]: https://img.shields.io/npm/v/terser.svg
[npm-url]: https://npmjs.org/package/terser
[downloads-image]: https://img.shields.io/npm/dm/terser.svg
[downloads-url]: https://npmjs.org/package/terser
[ci-image]: https://github.com/terser/terser/actions/workflows/ci.yml/badge.svg
[ci-url]: https://github.com/terser/terser/actions/workflows/ci.yml
[opencollective-contributors]: https://opencollective.com/terser/tiers/badge.svg
[opencollective-url]: https://opencollective.com/terser
Why choose terser?
------------------
`uglify-es` is [no longer maintained](https://github.com/mishoo/UglifyJS2/issues/3156#issuecomment-392943058) and `uglify-js` does not support ES6+.
**`terser`** is a fork of `uglify-es` that mostly retains API and CLI compatibility
with `uglify-es` and `uglify-js@3`.
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 terser -g
From NPM for programmatic use:
npm install terser
# Command line usage
<!-- CLI_USAGE:START -->
```
terser [input files] [options]
```
Terser can take multiple input files. It's recommended that you pass the
input files first, then pass the options. Terser 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.
Command line arguments that take options (like --parse, --compress, --mangle and
--format) can take in a comma-separated list of default option overrides. For
instance:
terser input.js --compress ecma=2015,computed_props=false
If no input file is specified, Terser 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:
terser --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 and DOM
API props.
`debug` Add debug prefix and suffix.
`keep_quoted` Only mangle unquoted properties, quoted
properties are automatically reserved.
`strict` disables quoted properties
being automatically reserved.
`regex` Only mangle matched property names.
`only_annotated` Only mangle properties defined with /*@__MANGLE_PROP__*/.
`reserved` List of names that should not be mangled.
-f, --format [options] Specify format options.
`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.
`wrap_func_args` Wrap function arguments in parenthesis.
-o, --output <file> Output file path (default STDOUT). Specify `ast` or
`spidermonkey` to write Terser 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 e.g. "@license",
or start with "!". You can optionally pass one of the
following arguments to this flag:
- "all" to keep all comments
- `false` to omit comments in the output
- 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, 2015, 2016, etc.
-e, --enclose [arg[:value]] Embed output in a big function with configurable
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
项目描述:这是一个基于SpringBoot+uniApp框架开发的宠物领养微信小程序系统。首先,这是一个前后端分离的项目,前端分为用户端和管理端,用户端使用微信小程序(uniApp开发),管理端使用Web页面(Vue开发)。然后这项目代码简洁规范,注释说明详细,易于理解和学习。其次,这项目功能丰富,具有一个宠物领养微信小程序系统该有的所有功能。 项目功能:此项目分为两个角色:普通用户和管理员。普通用户有登录注册、浏览宠物信息、浏览论坛帖子信息、管理自己发布的宠物信息、管理个人基本信息、管理自己发布的论坛帖子信息、评论帖子、收藏宠物、拍下宠物、管理自己的订单信息等等功能。管理员有管理所有用户信息、管理所有轮播图信息、管理所有首页板块信息、管理所有宠物分类信息、管理所有宠物信息、管理所有订单信息、管理所有论坛帖子信息、管理所有评论信息、查看收益数据图表等等功能。 应用技术:SpringBoot + uniApp + Vue3 + MySQL + MyBatis + Redis + ElementUI-Plus + uni-ui + Vite + TypeScript
资源推荐
资源详情
资源评论
收起资源包目录
SpringBoot+uniApp宠物领养小程序系统 附带详细运行指导视频 (2000个子文件)
运行前必读.doc 23KB
echarts.js 3.21MB
echarts.esm.js 2.88MB
echarts.common.js 2.11MB
echarts.simple.js 1.52MB
echarts.min.js 1005KB
echarts.esm.min.js 1005KB
echarts.common.min.js 645KB
vue.global.js 507KB
vue.esm-browser.js 477KB
echarts.simple.min.js 456KB
vue.runtime.global.js 346KB
vue.runtime.esm-browser.js 321KB
cdn.js 254KB
cdn.js 232KB
vue-router.global.js 155KB
vue.esm-browser.prod.js 147KB
vue.global.prod.js 144KB
vue-router.esm-browser.js 142KB
axios.js 111KB
cdn.min.js 100KB
cdn.min.js 96KB
fp.js 90KB
vue.runtime.esm-browser.prod.js 89KB
vue.runtime.global.prod.js 88KB
axios.js 84KB
echarts.js 82KB
axios.min.js 41KB
LineView.js 40KB
floating-ui.core.umd.js 40KB
CustomView.js 39KB
SeriesData.js 36KB
floating-ui.core.esm.js 34KB
TooltipView.js 33KB
BarView.js 33KB
DataStore.js 33KB
locale.js 32KB
TreemapView.js 32KB
SliderZoomView.js 31KB
axios.min.js 29KB
floating-ui.dom.umd.js 29KB
parse.js 29KB
Global.js 28KB
ContinuousView.js 28KB
MapDraw.js 27KB
parse.js 27KB
model.js 26KB
PictorialBarView.js 25KB
states.js 25KB
BrushController.js 25KB
SliderTimelineView.js 25KB
vue-router.global.prod.js 24KB
universalTransition.js 24KB
floating-ui.dom.esm.js 22KB
GaugeView.js 22KB
TreeView.js 22KB
AxisBuilder.js 22KB
http.js 22KB
LegendView.js 21KB
resolver_sync.js 20KB
Scheduler.js 20KB
index.js 20KB
index.iife.js 20KB
resolver.js 20KB
Series.js 19KB
Time.js 19KB
labelStyle.js 19KB
barGrid.js 18KB
treemapLayout.js 18KB
customGraphicTransition.js 18KB
number.js 18KB
labelGuideHelper.js 18KB
Grid.js 17KB
labelLayout.js 17KB
graphic.js 17KB
utils.js 17KB
OptionManager.js 17KB
DataZoomModel.js 17KB
ScrollableLegendView.js 17KB
LabelManager.js 16KB
VisualMapping.js 16KB
TooltipHTMLContent.js 16KB
transform.js 16KB
Line.js 16KB
sankeyLayout.js 16KB
Parallel.js 15KB
sourceManager.js 15KB
layout.js 15KB
GraphicView.js 15KB
pre-publish.js 15KB
PiecewiseModel.js 15KB
VisualMapModel.js 15KB
DataView.js 15KB
AxisProxy.js 15KB
parser.js 14KB
axisTrigger.js 14KB
MarkLineView.js 14KB
MarkAreaView.js 14KB
dataTool.js 14KB
CalendarView.js 14KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
- m0_597941102024-04-22资源简直太好了,完美解决了当下遇到的难题,这样的资源很难不支持~
- 2301_764350452024-05-18资源简直太好了,完美解决了当下遇到的难题,这样的资源很难不支持~
这里是杨杨吖
- 粉丝: 2w+
- 资源: 510
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 实用数据上市公司数字化转型双重差分准自然实验数据(2007-2022年).txt
- Jave Web实验报告二:开源中国静态复刻
- j avascipt 测试程序代码
- content_1732197590653.zip
- 模拟题最终版.docx
- Java Web实验报告一:通讯录
- XP-245废墨清零,懂的都懂 买了个打印机,清零好几次了,这个比较好用,也有简单的操作图,用起来不恶心 杀毒软件没报毒
- 不同温度下的光谱数据,仅截取550nm-700nm
- 不同温度下的光谱数据,仅截取550nm-700nm
- HengCe-18900-2024-2030全球与中国eMMC和UFS市场现状及未来发展趋势-样本.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功