UNPKG

3.12 kBJSONView Raw
1{
2 "name": "terser",
3 "description": "JavaScript parser, mangler/compressor and beautifier toolkit for ES6+",
4 "homepage": "https://terser.org",
5 "author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)",
6 "license": "BSD-2-Clause",
7 "version": "5.3.6",
8 "engines": {
9 "node": "^10.0.0,^11.0.0,^12.0.0,>=14.0.0"
10 },
11 "maintainers": [
12 "Fábio Santos <fabiosantosart@gmail.com>"
13 ],
14 "repository": "https://github.com/terser/terser",
15 "main": "dist/bundle.min.js",
16 "type": "module",
17 "module": "./main.js",
18 "exports": {
19 ".": {
20 "import": "./main.js",
21 "require": "./dist/bundle.min.js"
22 },
23 "./package": {
24 "default": "./package.json"
25 },
26 "./package.json": {
27 "default": "./package.json"
28 }
29 },
30 "types": "tools/terser.d.ts",
31 "bin": {
32 "terser": "bin/terser"
33 },
34 "files": [
35 "bin",
36 "dist",
37 "lib",
38 "tools",
39 "LICENSE",
40 "README.md",
41 "CHANGELOG.md",
42 "PATRONS.md",
43 "main.js"
44 ],
45 "dependencies": {
46 "commander": "^2.20.0",
47 "source-map": "~0.7.2",
48 "source-map-support": "~0.5.19"
49 },
50 "devDependencies": {
51 "@ls-lint/ls-lint": "^1.9.2",
52 "acorn": "^7.4.0",
53 "astring": "^1.4.1",
54 "eslint": "^7.0.0",
55 "eslump": "^2.0.0",
56 "esm": "^3.2.25",
57 "mocha": "^8.0.0",
58 "pre-commit": "^1.2.2",
59 "rimraf": "^3.0.0",
60 "rollup": "2.0.6",
61 "semver": "^7.1.3"
62 },
63 "scripts": {
64 "test": "node test/compress.js && mocha test/mocha",
65 "test:compress": "node test/compress.js",
66 "test:mocha": "mocha test/mocha",
67 "lint": "eslint lib",
68 "lint-fix": "eslint --fix lib",
69 "ls-lint": "ls-lint",
70 "build": "rimraf dist/bundle* && rollup --config --silent",
71 "prepare": "npm run build",
72 "postversion": "echo 'Remember to update the changelog!'"
73 },
74 "keywords": [
75 "uglify",
76 "terser",
77 "uglify-es",
78 "uglify-js",
79 "minify",
80 "minifier",
81 "javascript",
82 "ecmascript",
83 "es5",
84 "es6",
85 "es7",
86 "es8",
87 "es2015",
88 "es2016",
89 "es2017",
90 "async",
91 "await"
92 ],
93 "eslintConfig": {
94 "parserOptions": {
95 "sourceType": "module",
96 "ecmaVersion": "2020"
97 },
98 "env": {
99 "node": true,
100 "browser": true,
101 "es2020": true
102 },
103 "globals": {
104 "describe": false,
105 "it": false,
106 "require": false,
107 "global": false,
108 "process": false
109 },
110 "rules": {
111 "brace-style": [
112 "error",
113 "1tbs",
114 {
115 "allowSingleLine": true
116 }
117 ],
118 "quotes": [
119 "error",
120 "double",
121 "avoid-escape"
122 ],
123 "no-debugger": "error",
124 "no-undef": "error",
125 "no-unused-vars": [
126 "error",
127 {
128 "varsIgnorePattern": "^_$"
129 }
130 ],
131 "no-tabs": "error",
132 "semi": [
133 "error",
134 "always"
135 ],
136 "no-extra-semi": "error",
137 "no-irregular-whitespace": "error",
138 "space-before-blocks": [
139 "error",
140 "always"
141 ]
142 }
143 },
144 "pre-commit": [
145 "build",
146 "lint-fix",
147 "ls-lint",
148 "test"
149 ]
150}