zhang-wei-jian commited on
Commit
cdb0d23
1 Parent(s): 73d0f5b
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. Dockerfile +1 -1
  2. app.js +2 -2
  3. node_modules/.bin/nodemon +1 -0
  4. node_modules/.bin/nodetouch +1 -0
  5. node_modules/.bin/nopt +1 -0
  6. node_modules/.bin/semver +1 -0
  7. node_modules/.package-lock.json +780 -0
  8. node_modules/abbrev/LICENSE +46 -0
  9. node_modules/abbrev/README.md +23 -0
  10. node_modules/abbrev/abbrev.js +61 -0
  11. node_modules/abbrev/package.json +21 -0
  12. node_modules/accepts/HISTORY.md +243 -0
  13. node_modules/accepts/LICENSE +23 -0
  14. node_modules/accepts/README.md +140 -0
  15. node_modules/accepts/index.js +238 -0
  16. node_modules/accepts/package.json +47 -0
  17. node_modules/anymatch/LICENSE +15 -0
  18. node_modules/anymatch/README.md +87 -0
  19. node_modules/anymatch/index.d.ts +20 -0
  20. node_modules/anymatch/index.js +104 -0
  21. node_modules/anymatch/package.json +48 -0
  22. node_modules/balanced-match/.github/FUNDING.yml +2 -0
  23. node_modules/balanced-match/LICENSE.md +21 -0
  24. node_modules/balanced-match/README.md +97 -0
  25. node_modules/balanced-match/index.js +62 -0
  26. node_modules/balanced-match/package.json +48 -0
  27. node_modules/binary-extensions/binary-extensions.json +260 -0
  28. node_modules/binary-extensions/binary-extensions.json.d.ts +3 -0
  29. node_modules/binary-extensions/index.d.ts +14 -0
  30. node_modules/binary-extensions/index.js +1 -0
  31. node_modules/binary-extensions/license +9 -0
  32. node_modules/binary-extensions/package.json +38 -0
  33. node_modules/binary-extensions/readme.md +41 -0
  34. node_modules/brace-expansion/LICENSE +21 -0
  35. node_modules/brace-expansion/README.md +129 -0
  36. node_modules/brace-expansion/index.js +201 -0
  37. node_modules/brace-expansion/package.json +47 -0
  38. node_modules/braces/CHANGELOG.md +184 -0
  39. node_modules/braces/LICENSE +21 -0
  40. node_modules/braces/README.md +593 -0
  41. node_modules/braces/index.js +170 -0
  42. node_modules/braces/lib/compile.js +57 -0
  43. node_modules/braces/lib/constants.js +57 -0
  44. node_modules/braces/lib/expand.js +113 -0
  45. node_modules/braces/lib/parse.js +333 -0
  46. node_modules/braces/lib/stringify.js +32 -0
  47. node_modules/braces/lib/utils.js +112 -0
  48. node_modules/braces/package.json +77 -0
  49. node_modules/cache-content-type/History.md +15 -0
  50. node_modules/cache-content-type/README.md +17 -0
Dockerfile CHANGED
@@ -16,7 +16,7 @@ RUN npm install
16
  COPY . .
17
 
18
  # 暴露应用端口, 迷惑行为,只是提示项目里面启动的端口
19
- EXPOSE 8888
20
 
21
  # 运行应用
22
  CMD [ "npm", "run", "dev" ]
 
16
  COPY . .
17
 
18
  # 暴露应用端口, 迷惑行为,只是提示项目里面启动的端口
19
+ EXPOSE 7860
20
 
21
  # 运行应用
22
  CMD [ "npm", "run", "dev" ]
app.js CHANGED
@@ -4,6 +4,6 @@ const app = new koa()
4
  app.use(async (ctx, next) => {
5
  ctx.body = 'Hello World'
6
  })
7
- app.listen(8888, () => {
8
- console.log('server is running at http://localhost:8888')
9
  })
 
4
  app.use(async (ctx, next) => {
5
  ctx.body = 'Hello World'
6
  })
7
+ app.listen(7860, () => {
8
+ console.log('server is running at http://localhost:7860')
9
  })
node_modules/.bin/nodemon ADDED
@@ -0,0 +1 @@
 
 
1
+ ../nodemon/bin/nodemon.js
node_modules/.bin/nodetouch ADDED
@@ -0,0 +1 @@
 
 
1
+ ../touch/bin/nodetouch.js
node_modules/.bin/nopt ADDED
@@ -0,0 +1 @@
 
 
1
+ ../nopt/bin/nopt.js
node_modules/.bin/semver ADDED
@@ -0,0 +1 @@
 
 
1
+ ../semver/bin/semver
node_modules/.package-lock.json ADDED
@@ -0,0 +1,780 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "dockertest",
3
+ "version": "1.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "node_modules/abbrev": {
8
+ "version": "1.1.1",
9
+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
10
+ "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
11
+ "dev": true
12
+ },
13
+ "node_modules/accepts": {
14
+ "version": "1.3.8",
15
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
16
+ "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
17
+ "dependencies": {
18
+ "mime-types": "~2.1.34",
19
+ "negotiator": "0.6.3"
20
+ },
21
+ "engines": {
22
+ "node": ">= 0.6"
23
+ }
24
+ },
25
+ "node_modules/anymatch": {
26
+ "version": "3.1.3",
27
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
28
+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
29
+ "dev": true,
30
+ "dependencies": {
31
+ "normalize-path": "^3.0.0",
32
+ "picomatch": "^2.0.4"
33
+ },
34
+ "engines": {
35
+ "node": ">= 8"
36
+ }
37
+ },
38
+ "node_modules/balanced-match": {
39
+ "version": "1.0.2",
40
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
41
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
42
+ "dev": true
43
+ },
44
+ "node_modules/binary-extensions": {
45
+ "version": "2.2.0",
46
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
47
+ "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
48
+ "dev": true,
49
+ "engines": {
50
+ "node": ">=8"
51
+ }
52
+ },
53
+ "node_modules/brace-expansion": {
54
+ "version": "1.1.11",
55
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
56
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
57
+ "dev": true,
58
+ "dependencies": {
59
+ "balanced-match": "^1.0.0",
60
+ "concat-map": "0.0.1"
61
+ }
62
+ },
63
+ "node_modules/braces": {
64
+ "version": "3.0.2",
65
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
66
+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
67
+ "dev": true,
68
+ "dependencies": {
69
+ "fill-range": "^7.0.1"
70
+ },
71
+ "engines": {
72
+ "node": ">=8"
73
+ }
74
+ },
75
+ "node_modules/cache-content-type": {
76
+ "version": "1.0.1",
77
+ "resolved": "https://registry.npmjs.org/cache-content-type/-/cache-content-type-1.0.1.tgz",
78
+ "integrity": "sha512-IKufZ1o4Ut42YUrZSo8+qnMTrFuKkvyoLXUywKz9GJ5BrhOFGhLdkx9sG4KAnVvbY6kEcSFjLQul+DVmBm2bgA==",
79
+ "dependencies": {
80
+ "mime-types": "^2.1.18",
81
+ "ylru": "^1.2.0"
82
+ },
83
+ "engines": {
84
+ "node": ">= 6.0.0"
85
+ }
86
+ },
87
+ "node_modules/chokidar": {
88
+ "version": "3.5.3",
89
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
90
+ "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
91
+ "dev": true,
92
+ "funding": [
93
+ {
94
+ "type": "individual",
95
+ "url": "https://paulmillr.com/funding/"
96
+ }
97
+ ],
98
+ "dependencies": {
99
+ "anymatch": "~3.1.2",
100
+ "braces": "~3.0.2",
101
+ "glob-parent": "~5.1.2",
102
+ "is-binary-path": "~2.1.0",
103
+ "is-glob": "~4.0.1",
104
+ "normalize-path": "~3.0.0",
105
+ "readdirp": "~3.6.0"
106
+ },
107
+ "engines": {
108
+ "node": ">= 8.10.0"
109
+ },
110
+ "optionalDependencies": {
111
+ "fsevents": "~2.3.2"
112
+ }
113
+ },
114
+ "node_modules/co": {
115
+ "version": "4.6.0",
116
+ "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
117
+ "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==",
118
+ "engines": {
119
+ "iojs": ">= 1.0.0",
120
+ "node": ">= 0.12.0"
121
+ }
122
+ },
123
+ "node_modules/concat-map": {
124
+ "version": "0.0.1",
125
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
126
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
127
+ "dev": true
128
+ },
129
+ "node_modules/content-disposition": {
130
+ "version": "0.5.4",
131
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
132
+ "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
133
+ "dependencies": {
134
+ "safe-buffer": "5.2.1"
135
+ },
136
+ "engines": {
137
+ "node": ">= 0.6"
138
+ }
139
+ },
140
+ "node_modules/content-type": {
141
+ "version": "1.0.5",
142
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
143
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
144
+ "engines": {
145
+ "node": ">= 0.6"
146
+ }
147
+ },
148
+ "node_modules/cookies": {
149
+ "version": "0.8.0",
150
+ "resolved": "https://registry.npmjs.org/cookies/-/cookies-0.8.0.tgz",
151
+ "integrity": "sha512-8aPsApQfebXnuI+537McwYsDtjVxGm8gTIzQI3FDW6t5t/DAhERxtnbEPN/8RX+uZthoz4eCOgloXaE5cYyNow==",
152
+ "dependencies": {
153
+ "depd": "~2.0.0",
154
+ "keygrip": "~1.1.0"
155
+ },
156
+ "engines": {
157
+ "node": ">= 0.8"
158
+ }
159
+ },
160
+ "node_modules/debug": {
161
+ "version": "4.3.4",
162
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
163
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
164
+ "dependencies": {
165
+ "ms": "2.1.2"
166
+ },
167
+ "engines": {
168
+ "node": ">=6.0"
169
+ },
170
+ "peerDependenciesMeta": {
171
+ "supports-color": {
172
+ "optional": true
173
+ }
174
+ }
175
+ },
176
+ "node_modules/deep-equal": {
177
+ "version": "1.0.1",
178
+ "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz",
179
+ "integrity": "sha512-bHtC0iYvWhyaTzvV3CZgPeZQqCOBGyGsVV7v4eevpdkLHfiSrXUdBG+qAuSz4RI70sszvjQ1QSZ98An1yNwpSw=="
180
+ },
181
+ "node_modules/delegates": {
182
+ "version": "1.0.0",
183
+ "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
184
+ "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="
185
+ },
186
+ "node_modules/depd": {
187
+ "version": "2.0.0",
188
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
189
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
190
+ "engines": {
191
+ "node": ">= 0.8"
192
+ }
193
+ },
194
+ "node_modules/destroy": {
195
+ "version": "1.2.0",
196
+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
197
+ "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
198
+ "engines": {
199
+ "node": ">= 0.8",
200
+ "npm": "1.2.8000 || >= 1.4.16"
201
+ }
202
+ },
203
+ "node_modules/ee-first": {
204
+ "version": "1.1.1",
205
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
206
+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
207
+ },
208
+ "node_modules/encodeurl": {
209
+ "version": "1.0.2",
210
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
211
+ "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
212
+ "engines": {
213
+ "node": ">= 0.8"
214
+ }
215
+ },
216
+ "node_modules/escape-html": {
217
+ "version": "1.0.3",
218
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
219
+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
220
+ },
221
+ "node_modules/fill-range": {
222
+ "version": "7.0.1",
223
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
224
+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
225
+ "dev": true,
226
+ "dependencies": {
227
+ "to-regex-range": "^5.0.1"
228
+ },
229
+ "engines": {
230
+ "node": ">=8"
231
+ }
232
+ },
233
+ "node_modules/fresh": {
234
+ "version": "0.5.2",
235
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
236
+ "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
237
+ "engines": {
238
+ "node": ">= 0.6"
239
+ }
240
+ },
241
+ "node_modules/fsevents": {
242
+ "version": "2.3.2",
243
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
244
+ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
245
+ "dev": true,
246
+ "hasInstallScript": true,
247
+ "optional": true,
248
+ "os": [
249
+ "darwin"
250
+ ],
251
+ "engines": {
252
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
253
+ }
254
+ },
255
+ "node_modules/glob-parent": {
256
+ "version": "5.1.2",
257
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
258
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
259
+ "dev": true,
260
+ "dependencies": {
261
+ "is-glob": "^4.0.1"
262
+ },
263
+ "engines": {
264
+ "node": ">= 6"
265
+ }
266
+ },
267
+ "node_modules/has-flag": {
268
+ "version": "3.0.0",
269
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
270
+ "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
271
+ "dev": true,
272
+ "engines": {
273
+ "node": ">=4"
274
+ }
275
+ },
276
+ "node_modules/has-symbols": {
277
+ "version": "1.0.3",
278
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
279
+ "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
280
+ "engines": {
281
+ "node": ">= 0.4"
282
+ },
283
+ "funding": {
284
+ "url": "https://github.com/sponsors/ljharb"
285
+ }
286
+ },
287
+ "node_modules/has-tostringtag": {
288
+ "version": "1.0.0",
289
+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz",
290
+ "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==",
291
+ "dependencies": {
292
+ "has-symbols": "^1.0.2"
293
+ },
294
+ "engines": {
295
+ "node": ">= 0.4"
296
+ },
297
+ "funding": {
298
+ "url": "https://github.com/sponsors/ljharb"
299
+ }
300
+ },
301
+ "node_modules/http-assert": {
302
+ "version": "1.5.0",
303
+ "resolved": "https://registry.npmjs.org/http-assert/-/http-assert-1.5.0.tgz",
304
+ "integrity": "sha512-uPpH7OKX4H25hBmU6G1jWNaqJGpTXxey+YOUizJUAgu0AjLUeC8D73hTrhvDS5D+GJN1DN1+hhc/eF/wpxtp0w==",
305
+ "dependencies": {
306
+ "deep-equal": "~1.0.1",
307
+ "http-errors": "~1.8.0"
308
+ },
309
+ "engines": {
310
+ "node": ">= 0.8"
311
+ }
312
+ },
313
+ "node_modules/http-errors": {
314
+ "version": "1.8.1",
315
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz",
316
+ "integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==",
317
+ "dependencies": {
318
+ "depd": "~1.1.2",
319
+ "inherits": "2.0.4",
320
+ "setprototypeof": "1.2.0",
321
+ "statuses": ">= 1.5.0 < 2",
322
+ "toidentifier": "1.0.1"
323
+ },
324
+ "engines": {
325
+ "node": ">= 0.6"
326
+ }
327
+ },
328
+ "node_modules/http-errors/node_modules/depd": {
329
+ "version": "1.1.2",
330
+ "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
331
+ "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==",
332
+ "engines": {
333
+ "node": ">= 0.6"
334
+ }
335
+ },
336
+ "node_modules/ignore-by-default": {
337
+ "version": "1.0.1",
338
+ "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz",
339
+ "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==",
340
+ "dev": true
341
+ },
342
+ "node_modules/inherits": {
343
+ "version": "2.0.4",
344
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
345
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
346
+ },
347
+ "node_modules/is-binary-path": {
348
+ "version": "2.1.0",
349
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
350
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
351
+ "dev": true,
352
+ "dependencies": {
353
+ "binary-extensions": "^2.0.0"
354
+ },
355
+ "engines": {
356
+ "node": ">=8"
357
+ }
358
+ },
359
+ "node_modules/is-extglob": {
360
+ "version": "2.1.1",
361
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
362
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
363
+ "dev": true,
364
+ "engines": {
365
+ "node": ">=0.10.0"
366
+ }
367
+ },
368
+ "node_modules/is-generator-function": {
369
+ "version": "1.0.10",
370
+ "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz",
371
+ "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==",
372
+ "dependencies": {
373
+ "has-tostringtag": "^1.0.0"
374
+ },
375
+ "engines": {
376
+ "node": ">= 0.4"
377
+ },
378
+ "funding": {
379
+ "url": "https://github.com/sponsors/ljharb"
380
+ }
381
+ },
382
+ "node_modules/is-glob": {
383
+ "version": "4.0.3",
384
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
385
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
386
+ "dev": true,
387
+ "dependencies": {
388
+ "is-extglob": "^2.1.1"
389
+ },
390
+ "engines": {
391
+ "node": ">=0.10.0"
392
+ }
393
+ },
394
+ "node_modules/is-number": {
395
+ "version": "7.0.0",
396
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
397
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
398
+ "dev": true,
399
+ "engines": {
400
+ "node": ">=0.12.0"
401
+ }
402
+ },
403
+ "node_modules/keygrip": {
404
+ "version": "1.1.0",
405
+ "resolved": "https://registry.npmjs.org/keygrip/-/keygrip-1.1.0.tgz",
406
+ "integrity": "sha512-iYSchDJ+liQ8iwbSI2QqsQOvqv58eJCEanyJPJi+Khyu8smkcKSFUCbPwzFcL7YVtZ6eONjqRX/38caJ7QjRAQ==",
407
+ "dependencies": {
408
+ "tsscmp": "1.0.6"
409
+ },
410
+ "engines": {
411
+ "node": ">= 0.6"
412
+ }
413
+ },
414
+ "node_modules/koa": {
415
+ "version": "2.14.2",
416
+ "resolved": "https://registry.npmjs.org/koa/-/koa-2.14.2.tgz",
417
+ "integrity": "sha512-VFI2bpJaodz6P7x2uyLiX6RLYpZmOJqNmoCst/Yyd7hQlszyPwG/I9CQJ63nOtKSxpt5M7NH67V6nJL2BwCl7g==",
418
+ "dependencies": {
419
+ "accepts": "^1.3.5",
420
+ "cache-content-type": "^1.0.0",
421
+ "content-disposition": "~0.5.2",
422
+ "content-type": "^1.0.4",
423
+ "cookies": "~0.8.0",
424
+ "debug": "^4.3.2",
425
+ "delegates": "^1.0.0",
426
+ "depd": "^2.0.0",
427
+ "destroy": "^1.0.4",
428
+ "encodeurl": "^1.0.2",
429
+ "escape-html": "^1.0.3",
430
+ "fresh": "~0.5.2",
431
+ "http-assert": "^1.3.0",
432
+ "http-errors": "^1.6.3",
433
+ "is-generator-function": "^1.0.7",
434
+ "koa-compose": "^4.1.0",
435
+ "koa-convert": "^2.0.0",
436
+ "on-finished": "^2.3.0",
437
+ "only": "~0.0.2",
438
+ "parseurl": "^1.3.2",
439
+ "statuses": "^1.5.0",
440
+ "type-is": "^1.6.16",
441
+ "vary": "^1.1.2"
442
+ },
443
+ "engines": {
444
+ "node": "^4.8.4 || ^6.10.1 || ^7.10.1 || >= 8.1.4"
445
+ }
446
+ },
447
+ "node_modules/koa-compose": {
448
+ "version": "4.1.0",
449
+ "resolved": "https://registry.npmjs.org/koa-compose/-/koa-compose-4.1.0.tgz",
450
+ "integrity": "sha512-8ODW8TrDuMYvXRwra/Kh7/rJo9BtOfPc6qO8eAfC80CnCvSjSl0bkRM24X6/XBBEyj0v1nRUQ1LyOy3dbqOWXw=="
451
+ },
452
+ "node_modules/koa-convert": {
453
+ "version": "2.0.0",
454
+ "resolved": "https://registry.npmjs.org/koa-convert/-/koa-convert-2.0.0.tgz",
455
+ "integrity": "sha512-asOvN6bFlSnxewce2e/DK3p4tltyfC4VM7ZwuTuepI7dEQVcvpyFuBcEARu1+Hxg8DIwytce2n7jrZtRlPrARA==",
456
+ "dependencies": {
457
+ "co": "^4.6.0",
458
+ "koa-compose": "^4.1.0"
459
+ },
460
+ "engines": {
461
+ "node": ">= 10"
462
+ }
463
+ },
464
+ "node_modules/media-typer": {
465
+ "version": "0.3.0",
466
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
467
+ "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
468
+ "engines": {
469
+ "node": ">= 0.6"
470
+ }
471
+ },
472
+ "node_modules/mime-db": {
473
+ "version": "1.52.0",
474
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
475
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
476
+ "engines": {
477
+ "node": ">= 0.6"
478
+ }
479
+ },
480
+ "node_modules/mime-types": {
481
+ "version": "2.1.35",
482
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
483
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
484
+ "dependencies": {
485
+ "mime-db": "1.52.0"
486
+ },
487
+ "engines": {
488
+ "node": ">= 0.6"
489
+ }
490
+ },
491
+ "node_modules/minimatch": {
492
+ "version": "3.1.2",
493
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
494
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
495
+ "dev": true,
496
+ "dependencies": {
497
+ "brace-expansion": "^1.1.7"
498
+ },
499
+ "engines": {
500
+ "node": "*"
501
+ }
502
+ },
503
+ "node_modules/ms": {
504
+ "version": "2.1.2",
505
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
506
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
507
+ },
508
+ "node_modules/negotiator": {
509
+ "version": "0.6.3",
510
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
511
+ "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
512
+ "engines": {
513
+ "node": ">= 0.6"
514
+ }
515
+ },
516
+ "node_modules/nodemon": {
517
+ "version": "2.0.22",
518
+ "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.22.tgz",
519
+ "integrity": "sha512-B8YqaKMmyuCO7BowF1Z1/mkPqLk6cs/l63Ojtd6otKjMx47Dq1utxfRxcavH1I7VSaL8n5BUaoutadnsX3AAVQ==",
520
+ "dev": true,
521
+ "dependencies": {
522
+ "chokidar": "^3.5.2",
523
+ "debug": "^3.2.7",
524
+ "ignore-by-default": "^1.0.1",
525
+ "minimatch": "^3.1.2",
526
+ "pstree.remy": "^1.1.8",
527
+ "semver": "^5.7.1",
528
+ "simple-update-notifier": "^1.0.7",
529
+ "supports-color": "^5.5.0",
530
+ "touch": "^3.1.0",
531
+ "undefsafe": "^2.0.5"
532
+ },
533
+ "bin": {
534
+ "nodemon": "bin/nodemon.js"
535
+ },
536
+ "engines": {
537
+ "node": ">=8.10.0"
538
+ },
539
+ "funding": {
540
+ "type": "opencollective",
541
+ "url": "https://opencollective.com/nodemon"
542
+ }
543
+ },
544
+ "node_modules/nodemon/node_modules/debug": {
545
+ "version": "3.2.7",
546
+ "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
547
+ "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
548
+ "dev": true,
549
+ "dependencies": {
550
+ "ms": "^2.1.1"
551
+ }
552
+ },
553
+ "node_modules/nopt": {
554
+ "version": "1.0.10",
555
+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz",
556
+ "integrity": "sha512-NWmpvLSqUrgrAC9HCuxEvb+PSloHpqVu+FqcO4eeF2h5qYRhA7ev6KvelyQAKtegUbC6RypJnlEOhd8vloNKYg==",
557
+ "dev": true,
558
+ "dependencies": {
559
+ "abbrev": "1"
560
+ },
561
+ "bin": {
562
+ "nopt": "bin/nopt.js"
563
+ },
564
+ "engines": {
565
+ "node": "*"
566
+ }
567
+ },
568
+ "node_modules/normalize-path": {
569
+ "version": "3.0.0",
570
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
571
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
572
+ "dev": true,
573
+ "engines": {
574
+ "node": ">=0.10.0"
575
+ }
576
+ },
577
+ "node_modules/on-finished": {
578
+ "version": "2.4.1",
579
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
580
+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
581
+ "dependencies": {
582
+ "ee-first": "1.1.1"
583
+ },
584
+ "engines": {
585
+ "node": ">= 0.8"
586
+ }
587
+ },
588
+ "node_modules/only": {
589
+ "version": "0.0.2",
590
+ "resolved": "https://registry.npmjs.org/only/-/only-0.0.2.tgz",
591
+ "integrity": "sha512-Fvw+Jemq5fjjyWz6CpKx6w9s7xxqo3+JCyM0WXWeCSOboZ8ABkyvP8ID4CZuChA/wxSx+XSJmdOm8rGVyJ1hdQ=="
592
+ },
593
+ "node_modules/parseurl": {
594
+ "version": "1.3.3",
595
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
596
+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
597
+ "engines": {
598
+ "node": ">= 0.8"
599
+ }
600
+ },
601
+ "node_modules/picomatch": {
602
+ "version": "2.3.1",
603
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
604
+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
605
+ "dev": true,
606
+ "engines": {
607
+ "node": ">=8.6"
608
+ },
609
+ "funding": {
610
+ "url": "https://github.com/sponsors/jonschlinkert"
611
+ }
612
+ },
613
+ "node_modules/pstree.remy": {
614
+ "version": "1.1.8",
615
+ "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz",
616
+ "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==",
617
+ "dev": true
618
+ },
619
+ "node_modules/readdirp": {
620
+ "version": "3.6.0",
621
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
622
+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
623
+ "dev": true,
624
+ "dependencies": {
625
+ "picomatch": "^2.2.1"
626
+ },
627
+ "engines": {
628
+ "node": ">=8.10.0"
629
+ }
630
+ },
631
+ "node_modules/safe-buffer": {
632
+ "version": "5.2.1",
633
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
634
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
635
+ "funding": [
636
+ {
637
+ "type": "github",
638
+ "url": "https://github.com/sponsors/feross"
639
+ },
640
+ {
641
+ "type": "patreon",
642
+ "url": "https://www.patreon.com/feross"
643
+ },
644
+ {
645
+ "type": "consulting",
646
+ "url": "https://feross.org/support"
647
+ }
648
+ ]
649
+ },
650
+ "node_modules/semver": {
651
+ "version": "5.7.1",
652
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
653
+ "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
654
+ "dev": true,
655
+ "bin": {
656
+ "semver": "bin/semver"
657
+ }
658
+ },
659
+ "node_modules/setprototypeof": {
660
+ "version": "1.2.0",
661
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
662
+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
663
+ },
664
+ "node_modules/simple-update-notifier": {
665
+ "version": "1.1.0",
666
+ "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-1.1.0.tgz",
667
+ "integrity": "sha512-VpsrsJSUcJEseSbMHkrsrAVSdvVS5I96Qo1QAQ4FxQ9wXFcB+pjj7FB7/us9+GcgfW4ziHtYMc1J0PLczb55mg==",
668
+ "dev": true,
669
+ "dependencies": {
670
+ "semver": "~7.0.0"
671
+ },
672
+ "engines": {
673
+ "node": ">=8.10.0"
674
+ }
675
+ },
676
+ "node_modules/simple-update-notifier/node_modules/semver": {
677
+ "version": "7.0.0",
678
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz",
679
+ "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==",
680
+ "dev": true,
681
+ "bin": {
682
+ "semver": "bin/semver.js"
683
+ }
684
+ },
685
+ "node_modules/statuses": {
686
+ "version": "1.5.0",
687
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
688
+ "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==",
689
+ "engines": {
690
+ "node": ">= 0.6"
691
+ }
692
+ },
693
+ "node_modules/supports-color": {
694
+ "version": "5.5.0",
695
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
696
+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
697
+ "dev": true,
698
+ "dependencies": {
699
+ "has-flag": "^3.0.0"
700
+ },
701
+ "engines": {
702
+ "node": ">=4"
703
+ }
704
+ },
705
+ "node_modules/to-regex-range": {
706
+ "version": "5.0.1",
707
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
708
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
709
+ "dev": true,
710
+ "dependencies": {
711
+ "is-number": "^7.0.0"
712
+ },
713
+ "engines": {
714
+ "node": ">=8.0"
715
+ }
716
+ },
717
+ "node_modules/toidentifier": {
718
+ "version": "1.0.1",
719
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
720
+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
721
+ "engines": {
722
+ "node": ">=0.6"
723
+ }
724
+ },
725
+ "node_modules/touch": {
726
+ "version": "3.1.0",
727
+ "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz",
728
+ "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==",
729
+ "dev": true,
730
+ "dependencies": {
731
+ "nopt": "~1.0.10"
732
+ },
733
+ "bin": {
734
+ "nodetouch": "bin/nodetouch.js"
735
+ }
736
+ },
737
+ "node_modules/tsscmp": {
738
+ "version": "1.0.6",
739
+ "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.6.tgz",
740
+ "integrity": "sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==",
741
+ "engines": {
742
+ "node": ">=0.6.x"
743
+ }
744
+ },
745
+ "node_modules/type-is": {
746
+ "version": "1.6.18",
747
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
748
+ "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
749
+ "dependencies": {
750
+ "media-typer": "0.3.0",
751
+ "mime-types": "~2.1.24"
752
+ },
753
+ "engines": {
754
+ "node": ">= 0.6"
755
+ }
756
+ },
757
+ "node_modules/undefsafe": {
758
+ "version": "2.0.5",
759
+ "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz",
760
+ "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==",
761
+ "dev": true
762
+ },
763
+ "node_modules/vary": {
764
+ "version": "1.1.2",
765
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
766
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
767
+ "engines": {
768
+ "node": ">= 0.8"
769
+ }
770
+ },
771
+ "node_modules/ylru": {
772
+ "version": "1.3.2",
773
+ "resolved": "https://registry.npmjs.org/ylru/-/ylru-1.3.2.tgz",
774
+ "integrity": "sha512-RXRJzMiK6U2ye0BlGGZnmpwJDPgakn6aNQ0A7gHRbD4I0uvK4TW6UqkK1V0pp9jskjJBAXd3dRrbzWkqJ+6cxA==",
775
+ "engines": {
776
+ "node": ">= 4.0.0"
777
+ }
778
+ }
779
+ }
780
+ }
node_modules/abbrev/LICENSE ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This software is dual-licensed under the ISC and MIT licenses.
2
+ You may use this software under EITHER of the following licenses.
3
+
4
+ ----------
5
+
6
+ The ISC License
7
+
8
+ Copyright (c) Isaac Z. Schlueter and Contributors
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted, provided that the above
12
+ copyright notice and this permission notice appear in all copies.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
15
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
16
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
17
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
19
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
20
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21
+
22
+ ----------
23
+
24
+ Copyright Isaac Z. Schlueter and Contributors
25
+ All rights reserved.
26
+
27
+ Permission is hereby granted, free of charge, to any person
28
+ obtaining a copy of this software and associated documentation
29
+ files (the "Software"), to deal in the Software without
30
+ restriction, including without limitation the rights to use,
31
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
32
+ copies of the Software, and to permit persons to whom the
33
+ Software is furnished to do so, subject to the following
34
+ conditions:
35
+
36
+ The above copyright notice and this permission notice shall be
37
+ included in all copies or substantial portions of the Software.
38
+
39
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
41
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
43
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
44
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46
+ OTHER DEALINGS IN THE SOFTWARE.
node_modules/abbrev/README.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # abbrev-js
2
+
3
+ Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev).
4
+
5
+ Usage:
6
+
7
+ var abbrev = require("abbrev");
8
+ abbrev("foo", "fool", "folding", "flop");
9
+
10
+ // returns:
11
+ { fl: 'flop'
12
+ , flo: 'flop'
13
+ , flop: 'flop'
14
+ , fol: 'folding'
15
+ , fold: 'folding'
16
+ , foldi: 'folding'
17
+ , foldin: 'folding'
18
+ , folding: 'folding'
19
+ , foo: 'foo'
20
+ , fool: 'fool'
21
+ }
22
+
23
+ This is handy for command-line scripts, or other cases where you want to be able to accept shorthands.
node_modules/abbrev/abbrev.js ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ module.exports = exports = abbrev.abbrev = abbrev
2
+
3
+ abbrev.monkeyPatch = monkeyPatch
4
+
5
+ function monkeyPatch () {
6
+ Object.defineProperty(Array.prototype, 'abbrev', {
7
+ value: function () { return abbrev(this) },
8
+ enumerable: false, configurable: true, writable: true
9
+ })
10
+
11
+ Object.defineProperty(Object.prototype, 'abbrev', {
12
+ value: function () { return abbrev(Object.keys(this)) },
13
+ enumerable: false, configurable: true, writable: true
14
+ })
15
+ }
16
+
17
+ function abbrev (list) {
18
+ if (arguments.length !== 1 || !Array.isArray(list)) {
19
+ list = Array.prototype.slice.call(arguments, 0)
20
+ }
21
+ for (var i = 0, l = list.length, args = [] ; i < l ; i ++) {
22
+ args[i] = typeof list[i] === "string" ? list[i] : String(list[i])
23
+ }
24
+
25
+ // sort them lexicographically, so that they're next to their nearest kin
26
+ args = args.sort(lexSort)
27
+
28
+ // walk through each, seeing how much it has in common with the next and previous
29
+ var abbrevs = {}
30
+ , prev = ""
31
+ for (var i = 0, l = args.length ; i < l ; i ++) {
32
+ var current = args[i]
33
+ , next = args[i + 1] || ""
34
+ , nextMatches = true
35
+ , prevMatches = true
36
+ if (current === next) continue
37
+ for (var j = 0, cl = current.length ; j < cl ; j ++) {
38
+ var curChar = current.charAt(j)
39
+ nextMatches = nextMatches && curChar === next.charAt(j)
40
+ prevMatches = prevMatches && curChar === prev.charAt(j)
41
+ if (!nextMatches && !prevMatches) {
42
+ j ++
43
+ break
44
+ }
45
+ }
46
+ prev = current
47
+ if (j === cl) {
48
+ abbrevs[current] = current
49
+ continue
50
+ }
51
+ for (var a = current.substr(0, j) ; j <= cl ; j ++) {
52
+ abbrevs[a] = current
53
+ a += current.charAt(j)
54
+ }
55
+ }
56
+ return abbrevs
57
+ }
58
+
59
+ function lexSort (a, b) {
60
+ return a === b ? 0 : a > b ? 1 : -1
61
+ }
node_modules/abbrev/package.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "abbrev",
3
+ "version": "1.1.1",
4
+ "description": "Like ruby's abbrev module, but in js",
5
+ "author": "Isaac Z. Schlueter <i@izs.me>",
6
+ "main": "abbrev.js",
7
+ "scripts": {
8
+ "test": "tap test.js --100",
9
+ "preversion": "npm test",
10
+ "postversion": "npm publish",
11
+ "postpublish": "git push origin --all; git push origin --tags"
12
+ },
13
+ "repository": "http://github.com/isaacs/abbrev-js",
14
+ "license": "ISC",
15
+ "devDependencies": {
16
+ "tap": "^10.1"
17
+ },
18
+ "files": [
19
+ "abbrev.js"
20
+ ]
21
+ }
node_modules/accepts/HISTORY.md ADDED
@@ -0,0 +1,243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1.3.8 / 2022-02-02
2
+ ==================
3
+
4
+ * deps: mime-types@~2.1.34
5
+ - deps: mime-db@~1.51.0
6
+ * deps: negotiator@0.6.3
7
+
8
+ 1.3.7 / 2019-04-29
9
+ ==================
10
+
11
+ * deps: negotiator@0.6.2
12
+ - Fix sorting charset, encoding, and language with extra parameters
13
+
14
+ 1.3.6 / 2019-04-28
15
+ ==================
16
+
17
+ * deps: mime-types@~2.1.24
18
+ - deps: mime-db@~1.40.0
19
+
20
+ 1.3.5 / 2018-02-28
21
+ ==================
22
+
23
+ * deps: mime-types@~2.1.18
24
+ - deps: mime-db@~1.33.0
25
+
26
+ 1.3.4 / 2017-08-22
27
+ ==================
28
+
29
+ * deps: mime-types@~2.1.16
30
+ - deps: mime-db@~1.29.0
31
+
32
+ 1.3.3 / 2016-05-02
33
+ ==================
34
+
35
+ * deps: mime-types@~2.1.11
36
+ - deps: mime-db@~1.23.0
37
+ * deps: negotiator@0.6.1
38
+ - perf: improve `Accept` parsing speed
39
+ - perf: improve `Accept-Charset` parsing speed
40
+ - perf: improve `Accept-Encoding` parsing speed
41
+ - perf: improve `Accept-Language` parsing speed
42
+
43
+ 1.3.2 / 2016-03-08
44
+ ==================
45
+
46
+ * deps: mime-types@~2.1.10
47
+ - Fix extension of `application/dash+xml`
48
+ - Update primary extension for `audio/mp4`
49
+ - deps: mime-db@~1.22.0
50
+
51
+ 1.3.1 / 2016-01-19
52
+ ==================
53
+
54
+ * deps: mime-types@~2.1.9
55
+ - deps: mime-db@~1.21.0
56
+
57
+ 1.3.0 / 2015-09-29
58
+ ==================
59
+
60
+ * deps: mime-types@~2.1.7
61
+ - deps: mime-db@~1.19.0
62
+ * deps: negotiator@0.6.0
63
+ - Fix including type extensions in parameters in `Accept` parsing
64
+ - Fix parsing `Accept` parameters with quoted equals
65
+ - Fix parsing `Accept` parameters with quoted semicolons
66
+ - Lazy-load modules from main entry point
67
+ - perf: delay type concatenation until needed
68
+ - perf: enable strict mode
69
+ - perf: hoist regular expressions
70
+ - perf: remove closures getting spec properties
71
+ - perf: remove a closure from media type parsing
72
+ - perf: remove property delete from media type parsing
73
+
74
+ 1.2.13 / 2015-09-06
75
+ ===================
76
+
77
+ * deps: mime-types@~2.1.6
78
+ - deps: mime-db@~1.18.0
79
+
80
+ 1.2.12 / 2015-07-30
81
+ ===================
82
+
83
+ * deps: mime-types@~2.1.4
84
+ - deps: mime-db@~1.16.0
85
+
86
+ 1.2.11 / 2015-07-16
87
+ ===================
88
+
89
+ * deps: mime-types@~2.1.3
90
+ - deps: mime-db@~1.15.0
91
+
92
+ 1.2.10 / 2015-07-01
93
+ ===================
94
+
95
+ * deps: mime-types@~2.1.2
96
+ - deps: mime-db@~1.14.0
97
+
98
+ 1.2.9 / 2015-06-08
99
+ ==================
100
+
101
+ * deps: mime-types@~2.1.1
102
+ - perf: fix deopt during mapping
103
+
104
+ 1.2.8 / 2015-06-07
105
+ ==================
106
+
107
+ * deps: mime-types@~2.1.0
108
+ - deps: mime-db@~1.13.0
109
+ * perf: avoid argument reassignment & argument slice
110
+ * perf: avoid negotiator recursive construction
111
+ * perf: enable strict mode
112
+ * perf: remove unnecessary bitwise operator
113
+
114
+ 1.2.7 / 2015-05-10
115
+ ==================
116
+
117
+ * deps: negotiator@0.5.3
118
+ - Fix media type parameter matching to be case-insensitive
119
+
120
+ 1.2.6 / 2015-05-07
121
+ ==================
122
+
123
+ * deps: mime-types@~2.0.11
124
+ - deps: mime-db@~1.9.1
125
+ * deps: negotiator@0.5.2
126
+ - Fix comparing media types with quoted values
127
+ - Fix splitting media types with quoted commas
128
+
129
+ 1.2.5 / 2015-03-13
130
+ ==================
131
+
132
+ * deps: mime-types@~2.0.10
133
+ - deps: mime-db@~1.8.0
134
+
135
+ 1.2.4 / 2015-02-14
136
+ ==================
137
+
138
+ * Support Node.js 0.6
139
+ * deps: mime-types@~2.0.9
140
+ - deps: mime-db@~1.7.0
141
+ * deps: negotiator@0.5.1
142
+ - Fix preference sorting to be stable for long acceptable lists
143
+
144
+ 1.2.3 / 2015-01-31
145
+ ==================
146
+
147
+ * deps: mime-types@~2.0.8
148
+ - deps: mime-db@~1.6.0
149
+
150
+ 1.2.2 / 2014-12-30
151
+ ==================
152
+
153
+ * deps: mime-types@~2.0.7
154
+ - deps: mime-db@~1.5.0
155
+
156
+ 1.2.1 / 2014-12-30
157
+ ==================
158
+
159
+ * deps: mime-types@~2.0.5
160
+ - deps: mime-db@~1.3.1
161
+
162
+ 1.2.0 / 2014-12-19
163
+ ==================
164
+
165
+ * deps: negotiator@0.5.0
166
+ - Fix list return order when large accepted list
167
+ - Fix missing identity encoding when q=0 exists
168
+ - Remove dynamic building of Negotiator class
169
+
170
+ 1.1.4 / 2014-12-10
171
+ ==================
172
+
173
+ * deps: mime-types@~2.0.4
174
+ - deps: mime-db@~1.3.0
175
+
176
+ 1.1.3 / 2014-11-09
177
+ ==================
178
+
179
+ * deps: mime-types@~2.0.3
180
+ - deps: mime-db@~1.2.0
181
+
182
+ 1.1.2 / 2014-10-14
183
+ ==================
184
+
185
+ * deps: negotiator@0.4.9
186
+ - Fix error when media type has invalid parameter
187
+
188
+ 1.1.1 / 2014-09-28
189
+ ==================
190
+
191
+ * deps: mime-types@~2.0.2
192
+ - deps: mime-db@~1.1.0
193
+ * deps: negotiator@0.4.8
194
+ - Fix all negotiations to be case-insensitive
195
+ - Stable sort preferences of same quality according to client order
196
+
197
+ 1.1.0 / 2014-09-02
198
+ ==================
199
+
200
+ * update `mime-types`
201
+
202
+ 1.0.7 / 2014-07-04
203
+ ==================
204
+
205
+ * Fix wrong type returned from `type` when match after unknown extension
206
+
207
+ 1.0.6 / 2014-06-24
208
+ ==================
209
+
210
+ * deps: negotiator@0.4.7
211
+
212
+ 1.0.5 / 2014-06-20
213
+ ==================
214
+
215
+ * fix crash when unknown extension given
216
+
217
+ 1.0.4 / 2014-06-19
218
+ ==================
219
+
220
+ * use `mime-types`
221
+
222
+ 1.0.3 / 2014-06-11
223
+ ==================
224
+
225
+ * deps: negotiator@0.4.6
226
+ - Order by specificity when quality is the same
227
+
228
+ 1.0.2 / 2014-05-29
229
+ ==================
230
+
231
+ * Fix interpretation when header not in request
232
+ * deps: pin negotiator@0.4.5
233
+
234
+ 1.0.1 / 2014-01-18
235
+ ==================
236
+
237
+ * Identity encoding isn't always acceptable
238
+ * deps: negotiator@~0.4.0
239
+
240
+ 1.0.0 / 2013-12-27
241
+ ==================
242
+
243
+ * Genesis
node_modules/accepts/LICENSE ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
4
+ Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ 'Software'), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
node_modules/accepts/README.md ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # accepts
2
+
3
+ [![NPM Version][npm-version-image]][npm-url]
4
+ [![NPM Downloads][npm-downloads-image]][npm-url]
5
+ [![Node.js Version][node-version-image]][node-version-url]
6
+ [![Build Status][github-actions-ci-image]][github-actions-ci-url]
7
+ [![Test Coverage][coveralls-image]][coveralls-url]
8
+
9
+ Higher level content negotiation based on [negotiator](https://www.npmjs.com/package/negotiator).
10
+ Extracted from [koa](https://www.npmjs.com/package/koa) for general use.
11
+
12
+ In addition to negotiator, it allows:
13
+
14
+ - Allows types as an array or arguments list, ie `(['text/html', 'application/json'])`
15
+ as well as `('text/html', 'application/json')`.
16
+ - Allows type shorthands such as `json`.
17
+ - Returns `false` when no types match
18
+ - Treats non-existent headers as `*`
19
+
20
+ ## Installation
21
+
22
+ This is a [Node.js](https://nodejs.org/en/) module available through the
23
+ [npm registry](https://www.npmjs.com/). Installation is done using the
24
+ [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
25
+
26
+ ```sh
27
+ $ npm install accepts
28
+ ```
29
+
30
+ ## API
31
+
32
+ ```js
33
+ var accepts = require('accepts')
34
+ ```
35
+
36
+ ### accepts(req)
37
+
38
+ Create a new `Accepts` object for the given `req`.
39
+
40
+ #### .charset(charsets)
41
+
42
+ Return the first accepted charset. If nothing in `charsets` is accepted,
43
+ then `false` is returned.
44
+
45
+ #### .charsets()
46
+
47
+ Return the charsets that the request accepts, in the order of the client's
48
+ preference (most preferred first).
49
+
50
+ #### .encoding(encodings)
51
+
52
+ Return the first accepted encoding. If nothing in `encodings` is accepted,
53
+ then `false` is returned.
54
+
55
+ #### .encodings()
56
+
57
+ Return the encodings that the request accepts, in the order of the client's
58
+ preference (most preferred first).
59
+
60
+ #### .language(languages)
61
+
62
+ Return the first accepted language. If nothing in `languages` is accepted,
63
+ then `false` is returned.
64
+
65
+ #### .languages()
66
+
67
+ Return the languages that the request accepts, in the order of the client's
68
+ preference (most preferred first).
69
+
70
+ #### .type(types)
71
+
72
+ Return the first accepted type (and it is returned as the same text as what
73
+ appears in the `types` array). If nothing in `types` is accepted, then `false`
74
+ is returned.
75
+
76
+ The `types` array can contain full MIME types or file extensions. Any value
77
+ that is not a full MIME types is passed to `require('mime-types').lookup`.
78
+
79
+ #### .types()
80
+
81
+ Return the types that the request accepts, in the order of the client's
82
+ preference (most preferred first).
83
+
84
+ ## Examples
85
+
86
+ ### Simple type negotiation
87
+
88
+ This simple example shows how to use `accepts` to return a different typed
89
+ respond body based on what the client wants to accept. The server lists it's
90
+ preferences in order and will get back the best match between the client and
91
+ server.
92
+
93
+ ```js
94
+ var accepts = require('accepts')
95
+ var http = require('http')
96
+
97
+ function app (req, res) {
98
+ var accept = accepts(req)
99
+
100
+ // the order of this list is significant; should be server preferred order
101
+ switch (accept.type(['json', 'html'])) {
102
+ case 'json':
103
+ res.setHeader('Content-Type', 'application/json')
104
+ res.write('{"hello":"world!"}')
105
+ break
106
+ case 'html':
107
+ res.setHeader('Content-Type', 'text/html')
108
+ res.write('<b>hello, world!</b>')
109
+ break
110
+ default:
111
+ // the fallback is text/plain, so no need to specify it above
112
+ res.setHeader('Content-Type', 'text/plain')
113
+ res.write('hello, world!')
114
+ break
115
+ }
116
+
117
+ res.end()
118
+ }
119
+
120
+ http.createServer(app).listen(3000)
121
+ ```
122
+
123
+ You can test this out with the cURL program:
124
+ ```sh
125
+ curl -I -H'Accept: text/html' http://localhost:3000/
126
+ ```
127
+
128
+ ## License
129
+
130
+ [MIT](LICENSE)
131
+
132
+ [coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/accepts/master
133
+ [coveralls-url]: https://coveralls.io/r/jshttp/accepts?branch=master
134
+ [github-actions-ci-image]: https://badgen.net/github/checks/jshttp/accepts/master?label=ci
135
+ [github-actions-ci-url]: https://github.com/jshttp/accepts/actions/workflows/ci.yml
136
+ [node-version-image]: https://badgen.net/npm/node/accepts
137
+ [node-version-url]: https://nodejs.org/en/download
138
+ [npm-downloads-image]: https://badgen.net/npm/dm/accepts
139
+ [npm-url]: https://npmjs.org/package/accepts
140
+ [npm-version-image]: https://badgen.net/npm/v/accepts
node_modules/accepts/index.js ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * accepts
3
+ * Copyright(c) 2014 Jonathan Ong
4
+ * Copyright(c) 2015 Douglas Christopher Wilson
5
+ * MIT Licensed
6
+ */
7
+
8
+ 'use strict'
9
+
10
+ /**
11
+ * Module dependencies.
12
+ * @private
13
+ */
14
+
15
+ var Negotiator = require('negotiator')
16
+ var mime = require('mime-types')
17
+
18
+ /**
19
+ * Module exports.
20
+ * @public
21
+ */
22
+
23
+ module.exports = Accepts
24
+
25
+ /**
26
+ * Create a new Accepts object for the given req.
27
+ *
28
+ * @param {object} req
29
+ * @public
30
+ */
31
+
32
+ function Accepts (req) {
33
+ if (!(this instanceof Accepts)) {
34
+ return new Accepts(req)
35
+ }
36
+
37
+ this.headers = req.headers
38
+ this.negotiator = new Negotiator(req)
39
+ }
40
+
41
+ /**
42
+ * Check if the given `type(s)` is acceptable, returning
43
+ * the best match when true, otherwise `undefined`, in which
44
+ * case you should respond with 406 "Not Acceptable".
45
+ *
46
+ * The `type` value may be a single mime type string
47
+ * such as "application/json", the extension name
48
+ * such as "json" or an array `["json", "html", "text/plain"]`. When a list
49
+ * or array is given the _best_ match, if any is returned.
50
+ *
51
+ * Examples:
52
+ *
53
+ * // Accept: text/html
54
+ * this.types('html');
55
+ * // => "html"
56
+ *
57
+ * // Accept: text/*, application/json
58
+ * this.types('html');
59
+ * // => "html"
60
+ * this.types('text/html');
61
+ * // => "text/html"
62
+ * this.types('json', 'text');
63
+ * // => "json"
64
+ * this.types('application/json');
65
+ * // => "application/json"
66
+ *
67
+ * // Accept: text/*, application/json
68
+ * this.types('image/png');
69
+ * this.types('png');
70
+ * // => undefined
71
+ *
72
+ * // Accept: text/*;q=.5, application/json
73
+ * this.types(['html', 'json']);
74
+ * this.types('html', 'json');
75
+ * // => "json"
76
+ *
77
+ * @param {String|Array} types...
78
+ * @return {String|Array|Boolean}
79
+ * @public
80
+ */
81
+
82
+ Accepts.prototype.type =
83
+ Accepts.prototype.types = function (types_) {
84
+ var types = types_
85
+
86
+ // support flattened arguments
87
+ if (types && !Array.isArray(types)) {
88
+ types = new Array(arguments.length)
89
+ for (var i = 0; i < types.length; i++) {
90
+ types[i] = arguments[i]
91
+ }
92
+ }
93
+
94
+ // no types, return all requested types
95
+ if (!types || types.length === 0) {
96
+ return this.negotiator.mediaTypes()
97
+ }
98
+
99
+ // no accept header, return first given type
100
+ if (!this.headers.accept) {
101
+ return types[0]
102
+ }
103
+
104
+ var mimes = types.map(extToMime)
105
+ var accepts = this.negotiator.mediaTypes(mimes.filter(validMime))
106
+ var first = accepts[0]
107
+
108
+ return first
109
+ ? types[mimes.indexOf(first)]
110
+ : false
111
+ }
112
+
113
+ /**
114
+ * Return accepted encodings or best fit based on `encodings`.
115
+ *
116
+ * Given `Accept-Encoding: gzip, deflate`
117
+ * an array sorted by quality is returned:
118
+ *
119
+ * ['gzip', 'deflate']
120
+ *
121
+ * @param {String|Array} encodings...
122
+ * @return {String|Array}
123
+ * @public
124
+ */
125
+
126
+ Accepts.prototype.encoding =
127
+ Accepts.prototype.encodings = function (encodings_) {
128
+ var encodings = encodings_
129
+
130
+ // support flattened arguments
131
+ if (encodings && !Array.isArray(encodings)) {
132
+ encodings = new Array(arguments.length)
133
+ for (var i = 0; i < encodings.length; i++) {
134
+ encodings[i] = arguments[i]
135
+ }
136
+ }
137
+
138
+ // no encodings, return all requested encodings
139
+ if (!encodings || encodings.length === 0) {
140
+ return this.negotiator.encodings()
141
+ }
142
+
143
+ return this.negotiator.encodings(encodings)[0] || false
144
+ }
145
+
146
+ /**
147
+ * Return accepted charsets or best fit based on `charsets`.
148
+ *
149
+ * Given `Accept-Charset: utf-8, iso-8859-1;q=0.2, utf-7;q=0.5`
150
+ * an array sorted by quality is returned:
151
+ *
152
+ * ['utf-8', 'utf-7', 'iso-8859-1']
153
+ *
154
+ * @param {String|Array} charsets...
155
+ * @return {String|Array}
156
+ * @public
157
+ */
158
+
159
+ Accepts.prototype.charset =
160
+ Accepts.prototype.charsets = function (charsets_) {
161
+ var charsets = charsets_
162
+
163
+ // support flattened arguments
164
+ if (charsets && !Array.isArray(charsets)) {
165
+ charsets = new Array(arguments.length)
166
+ for (var i = 0; i < charsets.length; i++) {
167
+ charsets[i] = arguments[i]
168
+ }
169
+ }
170
+
171
+ // no charsets, return all requested charsets
172
+ if (!charsets || charsets.length === 0) {
173
+ return this.negotiator.charsets()
174
+ }
175
+
176
+ return this.negotiator.charsets(charsets)[0] || false
177
+ }
178
+
179
+ /**
180
+ * Return accepted languages or best fit based on `langs`.
181
+ *
182
+ * Given `Accept-Language: en;q=0.8, es, pt`
183
+ * an array sorted by quality is returned:
184
+ *
185
+ * ['es', 'pt', 'en']
186
+ *
187
+ * @param {String|Array} langs...
188
+ * @return {Array|String}
189
+ * @public
190
+ */
191
+
192
+ Accepts.prototype.lang =
193
+ Accepts.prototype.langs =
194
+ Accepts.prototype.language =
195
+ Accepts.prototype.languages = function (languages_) {
196
+ var languages = languages_
197
+
198
+ // support flattened arguments
199
+ if (languages && !Array.isArray(languages)) {
200
+ languages = new Array(arguments.length)
201
+ for (var i = 0; i < languages.length; i++) {
202
+ languages[i] = arguments[i]
203
+ }
204
+ }
205
+
206
+ // no languages, return all requested languages
207
+ if (!languages || languages.length === 0) {
208
+ return this.negotiator.languages()
209
+ }
210
+
211
+ return this.negotiator.languages(languages)[0] || false
212
+ }
213
+
214
+ /**
215
+ * Convert extnames to mime.
216
+ *
217
+ * @param {String} type
218
+ * @return {String}
219
+ * @private
220
+ */
221
+
222
+ function extToMime (type) {
223
+ return type.indexOf('/') === -1
224
+ ? mime.lookup(type)
225
+ : type
226
+ }
227
+
228
+ /**
229
+ * Check if mime is valid.
230
+ *
231
+ * @param {String} type
232
+ * @return {String}
233
+ * @private
234
+ */
235
+
236
+ function validMime (type) {
237
+ return typeof type === 'string'
238
+ }
node_modules/accepts/package.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "accepts",
3
+ "description": "Higher-level content negotiation",
4
+ "version": "1.3.8",
5
+ "contributors": [
6
+ "Douglas Christopher Wilson <doug@somethingdoug.com>",
7
+ "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
8
+ ],
9
+ "license": "MIT",
10
+ "repository": "jshttp/accepts",
11
+ "dependencies": {
12
+ "mime-types": "~2.1.34",
13
+ "negotiator": "0.6.3"
14
+ },
15
+ "devDependencies": {
16
+ "deep-equal": "1.0.1",
17
+ "eslint": "7.32.0",
18
+ "eslint-config-standard": "14.1.1",
19
+ "eslint-plugin-import": "2.25.4",
20
+ "eslint-plugin-markdown": "2.2.1",
21
+ "eslint-plugin-node": "11.1.0",
22
+ "eslint-plugin-promise": "4.3.1",
23
+ "eslint-plugin-standard": "4.1.0",
24
+ "mocha": "9.2.0",
25
+ "nyc": "15.1.0"
26
+ },
27
+ "files": [
28
+ "LICENSE",
29
+ "HISTORY.md",
30
+ "index.js"
31
+ ],
32
+ "engines": {
33
+ "node": ">= 0.6"
34
+ },
35
+ "scripts": {
36
+ "lint": "eslint .",
37
+ "test": "mocha --reporter spec --check-leaks --bail test/",
38
+ "test-ci": "nyc --reporter=lcov --reporter=text npm test",
39
+ "test-cov": "nyc --reporter=html --reporter=text npm test"
40
+ },
41
+ "keywords": [
42
+ "content",
43
+ "negotiation",
44
+ "accept",
45
+ "accepts"
46
+ ]
47
+ }
node_modules/anymatch/LICENSE ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The ISC License
2
+
3
+ Copyright (c) 2019 Elan Shanker, Paul Miller (https://paulmillr.com)
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
node_modules/anymatch/README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ anymatch [![Build Status](https://travis-ci.org/micromatch/anymatch.svg?branch=master)](https://travis-ci.org/micromatch/anymatch) [![Coverage Status](https://img.shields.io/coveralls/micromatch/anymatch.svg?branch=master)](https://coveralls.io/r/micromatch/anymatch?branch=master)
2
+ ======
3
+ Javascript module to match a string against a regular expression, glob, string,
4
+ or function that takes the string as an argument and returns a truthy or falsy
5
+ value. The matcher can also be an array of any or all of these. Useful for
6
+ allowing a very flexible user-defined config to define things like file paths.
7
+
8
+ __Note: This module has Bash-parity, please be aware that Windows-style backslashes are not supported as separators. See https://github.com/micromatch/micromatch#backslashes for more information.__
9
+
10
+
11
+ Usage
12
+ -----
13
+ ```sh
14
+ npm install anymatch
15
+ ```
16
+
17
+ #### anymatch(matchers, testString, [returnIndex], [options])
18
+ * __matchers__: (_Array|String|RegExp|Function_)
19
+ String to be directly matched, string with glob patterns, regular expression
20
+ test, function that takes the testString as an argument and returns a truthy
21
+ value if it should be matched, or an array of any number and mix of these types.
22
+ * __testString__: (_String|Array_) The string to test against the matchers. If
23
+ passed as an array, the first element of the array will be used as the
24
+ `testString` for non-function matchers, while the entire array will be applied
25
+ as the arguments for function matchers.
26
+ * __options__: (_Object_ [optional]_) Any of the [picomatch](https://github.com/micromatch/picomatch#options) options.
27
+ * __returnIndex__: (_Boolean [optional]_) If true, return the array index of
28
+ the first matcher that that testString matched, or -1 if no match, instead of a
29
+ boolean result.
30
+
31
+ ```js
32
+ const anymatch = require('anymatch');
33
+
34
+ const matchers = [ 'path/to/file.js', 'path/anyjs/**/*.js', /foo.js$/, string => string.includes('bar') && string.length > 10 ] ;
35
+
36
+ anymatch(matchers, 'path/to/file.js'); // true
37
+ anymatch(matchers, 'path/anyjs/baz.js'); // true
38
+ anymatch(matchers, 'path/to/foo.js'); // true
39
+ anymatch(matchers, 'path/to/bar.js'); // true
40
+ anymatch(matchers, 'bar.js'); // false
41
+
42
+ // returnIndex = true
43
+ anymatch(matchers, 'foo.js', {returnIndex: true}); // 2
44
+ anymatch(matchers, 'path/anyjs/foo.js', {returnIndex: true}); // 1
45
+
46
+ // any picomatc
47
+
48
+ // using globs to match directories and their children
49
+ anymatch('node_modules', 'node_modules'); // true
50
+ anymatch('node_modules', 'node_modules/somelib/index.js'); // false
51
+ anymatch('node_modules/**', 'node_modules/somelib/index.js'); // true
52
+ anymatch('node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // false
53
+ anymatch('**/node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // true
54
+
55
+ const matcher = anymatch(matchers);
56
+ ['foo.js', 'bar.js'].filter(matcher); // [ 'foo.js' ]
57
+ anymatch master* ❯
58
+
59
+ ```
60
+
61
+ #### anymatch(matchers)
62
+ You can also pass in only your matcher(s) to get a curried function that has
63
+ already been bound to the provided matching criteria. This can be used as an
64
+ `Array#filter` callback.
65
+
66
+ ```js
67
+ var matcher = anymatch(matchers);
68
+
69
+ matcher('path/to/file.js'); // true
70
+ matcher('path/anyjs/baz.js', true); // 1
71
+
72
+ ['foo.js', 'bar.js'].filter(matcher); // ['foo.js']
73
+ ```
74
+
75
+ Changelog
76
+ ----------
77
+ [See release notes page on GitHub](https://github.com/micromatch/anymatch/releases)
78
+
79
+ - **v3.0:** Removed `startIndex` and `endIndex` arguments. Node 8.x-only.
80
+ - **v2.0:** [micromatch](https://github.com/jonschlinkert/micromatch) moves away from minimatch-parity and inline with Bash. This includes handling backslashes differently (see https://github.com/micromatch/micromatch#backslashes for more information).
81
+ - **v1.2:** anymatch uses [micromatch](https://github.com/jonschlinkert/micromatch)
82
+ for glob pattern matching. Issues with glob pattern matching should be
83
+ reported directly to the [micromatch issue tracker](https://github.com/jonschlinkert/micromatch/issues).
84
+
85
+ License
86
+ -------
87
+ [ISC](https://raw.github.com/micromatch/anymatch/master/LICENSE)
node_modules/anymatch/index.d.ts ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ type AnymatchFn = (testString: string) => boolean;
2
+ type AnymatchPattern = string|RegExp|AnymatchFn;
3
+ type AnymatchMatcher = AnymatchPattern|AnymatchPattern[]
4
+ type AnymatchTester = {
5
+ (testString: string|any[], returnIndex: true): number;
6
+ (testString: string|any[]): boolean;
7
+ }
8
+
9
+ type PicomatchOptions = {dot: boolean};
10
+
11
+ declare const anymatch: {
12
+ (matchers: AnymatchMatcher): AnymatchTester;
13
+ (matchers: AnymatchMatcher, testString: null, returnIndex: true | PicomatchOptions): AnymatchTester;
14
+ (matchers: AnymatchMatcher, testString: string|any[], returnIndex: true | PicomatchOptions): number;
15
+ (matchers: AnymatchMatcher, testString: string|any[]): boolean;
16
+ }
17
+
18
+ export {AnymatchMatcher as Matcher}
19
+ export {AnymatchTester as Tester}
20
+ export default anymatch
node_modules/anymatch/index.js ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+
5
+ const picomatch = require('picomatch');
6
+ const normalizePath = require('normalize-path');
7
+
8
+ /**
9
+ * @typedef {(testString: string) => boolean} AnymatchFn
10
+ * @typedef {string|RegExp|AnymatchFn} AnymatchPattern
11
+ * @typedef {AnymatchPattern|AnymatchPattern[]} AnymatchMatcher
12
+ */
13
+ const BANG = '!';
14
+ const DEFAULT_OPTIONS = {returnIndex: false};
15
+ const arrify = (item) => Array.isArray(item) ? item : [item];
16
+
17
+ /**
18
+ * @param {AnymatchPattern} matcher
19
+ * @param {object} options
20
+ * @returns {AnymatchFn}
21
+ */
22
+ const createPattern = (matcher, options) => {
23
+ if (typeof matcher === 'function') {
24
+ return matcher;
25
+ }
26
+ if (typeof matcher === 'string') {
27
+ const glob = picomatch(matcher, options);
28
+ return (string) => matcher === string || glob(string);
29
+ }
30
+ if (matcher instanceof RegExp) {
31
+ return (string) => matcher.test(string);
32
+ }
33
+ return (string) => false;
34
+ };
35
+
36
+ /**
37
+ * @param {Array<Function>} patterns
38
+ * @param {Array<Function>} negPatterns
39
+ * @param {String|Array} args
40
+ * @param {Boolean} returnIndex
41
+ * @returns {boolean|number}
42
+ */
43
+ const matchPatterns = (patterns, negPatterns, args, returnIndex) => {
44
+ const isList = Array.isArray(args);
45
+ const _path = isList ? args[0] : args;
46
+ if (!isList && typeof _path !== 'string') {
47
+ throw new TypeError('anymatch: second argument must be a string: got ' +
48
+ Object.prototype.toString.call(_path))
49
+ }
50
+ const path = normalizePath(_path, false);
51
+
52
+ for (let index = 0; index < negPatterns.length; index++) {
53
+ const nglob = negPatterns[index];
54
+ if (nglob(path)) {
55
+ return returnIndex ? -1 : false;
56
+ }
57
+ }
58
+
59
+ const applied = isList && [path].concat(args.slice(1));
60
+ for (let index = 0; index < patterns.length; index++) {
61
+ const pattern = patterns[index];
62
+ if (isList ? pattern(...applied) : pattern(path)) {
63
+ return returnIndex ? index : true;
64
+ }
65
+ }
66
+
67
+ return returnIndex ? -1 : false;
68
+ };
69
+
70
+ /**
71
+ * @param {AnymatchMatcher} matchers
72
+ * @param {Array|string} testString
73
+ * @param {object} options
74
+ * @returns {boolean|number|Function}
75
+ */
76
+ const anymatch = (matchers, testString, options = DEFAULT_OPTIONS) => {
77
+ if (matchers == null) {
78
+ throw new TypeError('anymatch: specify first argument');
79
+ }
80
+ const opts = typeof options === 'boolean' ? {returnIndex: options} : options;
81
+ const returnIndex = opts.returnIndex || false;
82
+
83
+ // Early cache for matchers.
84
+ const mtchers = arrify(matchers);
85
+ const negatedGlobs = mtchers
86
+ .filter(item => typeof item === 'string' && item.charAt(0) === BANG)
87
+ .map(item => item.slice(1))
88
+ .map(item => picomatch(item, opts));
89
+ const patterns = mtchers
90
+ .filter(item => typeof item !== 'string' || (typeof item === 'string' && item.charAt(0) !== BANG))
91
+ .map(matcher => createPattern(matcher, opts));
92
+
93
+ if (testString == null) {
94
+ return (testString, ri = false) => {
95
+ const returnIndex = typeof ri === 'boolean' ? ri : false;
96
+ return matchPatterns(patterns, negatedGlobs, testString, returnIndex);
97
+ }
98
+ }
99
+
100
+ return matchPatterns(patterns, negatedGlobs, testString, returnIndex);
101
+ };
102
+
103
+ anymatch.default = anymatch;
104
+ module.exports = anymatch;
node_modules/anymatch/package.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "anymatch",
3
+ "version": "3.1.3",
4
+ "description": "Matches strings against configurable strings, globs, regular expressions, and/or functions",
5
+ "files": [
6
+ "index.js",
7
+ "index.d.ts"
8
+ ],
9
+ "dependencies": {
10
+ "normalize-path": "^3.0.0",
11
+ "picomatch": "^2.0.4"
12
+ },
13
+ "author": {
14
+ "name": "Elan Shanker",
15
+ "url": "https://github.com/es128"
16
+ },
17
+ "license": "ISC",
18
+ "homepage": "https://github.com/micromatch/anymatch",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/micromatch/anymatch"
22
+ },
23
+ "keywords": [
24
+ "match",
25
+ "any",
26
+ "string",
27
+ "file",
28
+ "fs",
29
+ "list",
30
+ "glob",
31
+ "regex",
32
+ "regexp",
33
+ "regular",
34
+ "expression",
35
+ "function"
36
+ ],
37
+ "scripts": {
38
+ "test": "nyc mocha",
39
+ "mocha": "mocha"
40
+ },
41
+ "devDependencies": {
42
+ "mocha": "^6.1.3",
43
+ "nyc": "^14.0.0"
44
+ },
45
+ "engines": {
46
+ "node": ">= 8"
47
+ }
48
+ }
node_modules/balanced-match/.github/FUNDING.yml ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ tidelift: "npm/balanced-match"
2
+ patreon: juliangruber
node_modules/balanced-match/LICENSE.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (MIT)
2
+
3
+ Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
+ of the Software, and to permit persons to whom the Software is furnished to do
10
+ so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
node_modules/balanced-match/README.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # balanced-match
2
+
3
+ Match balanced string pairs, like `{` and `}` or `<b>` and `</b>`. Supports regular expressions as well!
4
+
5
+ [![build status](https://secure.travis-ci.org/juliangruber/balanced-match.svg)](http://travis-ci.org/juliangruber/balanced-match)
6
+ [![downloads](https://img.shields.io/npm/dm/balanced-match.svg)](https://www.npmjs.org/package/balanced-match)
7
+
8
+ [![testling badge](https://ci.testling.com/juliangruber/balanced-match.png)](https://ci.testling.com/juliangruber/balanced-match)
9
+
10
+ ## Example
11
+
12
+ Get the first matching pair of braces:
13
+
14
+ ```js
15
+ var balanced = require('balanced-match');
16
+
17
+ console.log(balanced('{', '}', 'pre{in{nested}}post'));
18
+ console.log(balanced('{', '}', 'pre{first}between{second}post'));
19
+ console.log(balanced(/\s+\{\s+/, /\s+\}\s+/, 'pre { in{nest} } post'));
20
+ ```
21
+
22
+ The matches are:
23
+
24
+ ```bash
25
+ $ node example.js
26
+ { start: 3, end: 14, pre: 'pre', body: 'in{nested}', post: 'post' }
27
+ { start: 3,
28
+ end: 9,
29
+ pre: 'pre',
30
+ body: 'first',
31
+ post: 'between{second}post' }
32
+ { start: 3, end: 17, pre: 'pre', body: 'in{nest}', post: 'post' }
33
+ ```
34
+
35
+ ## API
36
+
37
+ ### var m = balanced(a, b, str)
38
+
39
+ For the first non-nested matching pair of `a` and `b` in `str`, return an
40
+ object with those keys:
41
+
42
+ * **start** the index of the first match of `a`
43
+ * **end** the index of the matching `b`
44
+ * **pre** the preamble, `a` and `b` not included
45
+ * **body** the match, `a` and `b` not included
46
+ * **post** the postscript, `a` and `b` not included
47
+
48
+ If there's no match, `undefined` will be returned.
49
+
50
+ If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `['{', 'a', '']` and `{a}}` will match `['', 'a', '}']`.
51
+
52
+ ### var r = balanced.range(a, b, str)
53
+
54
+ For the first non-nested matching pair of `a` and `b` in `str`, return an
55
+ array with indexes: `[ <a index>, <b index> ]`.
56
+
57
+ If there's no match, `undefined` will be returned.
58
+
59
+ If the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `[ 1, 3 ]` and `{a}}` will match `[0, 2]`.
60
+
61
+ ## Installation
62
+
63
+ With [npm](https://npmjs.org) do:
64
+
65
+ ```bash
66
+ npm install balanced-match
67
+ ```
68
+
69
+ ## Security contact information
70
+
71
+ To report a security vulnerability, please use the
72
+ [Tidelift security contact](https://tidelift.com/security).
73
+ Tidelift will coordinate the fix and disclosure.
74
+
75
+ ## License
76
+
77
+ (MIT)
78
+
79
+ Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
80
+
81
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
82
+ this software and associated documentation files (the "Software"), to deal in
83
+ the Software without restriction, including without limitation the rights to
84
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
85
+ of the Software, and to permit persons to whom the Software is furnished to do
86
+ so, subject to the following conditions:
87
+
88
+ The above copyright notice and this permission notice shall be included in all
89
+ copies or substantial portions of the Software.
90
+
91
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
92
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
93
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
94
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
95
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
96
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
97
+ SOFTWARE.
node_modules/balanced-match/index.js ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+ module.exports = balanced;
3
+ function balanced(a, b, str) {
4
+ if (a instanceof RegExp) a = maybeMatch(a, str);
5
+ if (b instanceof RegExp) b = maybeMatch(b, str);
6
+
7
+ var r = range(a, b, str);
8
+
9
+ return r && {
10
+ start: r[0],
11
+ end: r[1],
12
+ pre: str.slice(0, r[0]),
13
+ body: str.slice(r[0] + a.length, r[1]),
14
+ post: str.slice(r[1] + b.length)
15
+ };
16
+ }
17
+
18
+ function maybeMatch(reg, str) {
19
+ var m = str.match(reg);
20
+ return m ? m[0] : null;
21
+ }
22
+
23
+ balanced.range = range;
24
+ function range(a, b, str) {
25
+ var begs, beg, left, right, result;
26
+ var ai = str.indexOf(a);
27
+ var bi = str.indexOf(b, ai + 1);
28
+ var i = ai;
29
+
30
+ if (ai >= 0 && bi > 0) {
31
+ if(a===b) {
32
+ return [ai, bi];
33
+ }
34
+ begs = [];
35
+ left = str.length;
36
+
37
+ while (i >= 0 && !result) {
38
+ if (i == ai) {
39
+ begs.push(i);
40
+ ai = str.indexOf(a, i + 1);
41
+ } else if (begs.length == 1) {
42
+ result = [ begs.pop(), bi ];
43
+ } else {
44
+ beg = begs.pop();
45
+ if (beg < left) {
46
+ left = beg;
47
+ right = bi;
48
+ }
49
+
50
+ bi = str.indexOf(b, i + 1);
51
+ }
52
+
53
+ i = ai < bi && ai >= 0 ? ai : bi;
54
+ }
55
+
56
+ if (begs.length) {
57
+ result = [ left, right ];
58
+ }
59
+ }
60
+
61
+ return result;
62
+ }
node_modules/balanced-match/package.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "balanced-match",
3
+ "description": "Match balanced character pairs, like \"{\" and \"}\"",
4
+ "version": "1.0.2",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git://github.com/juliangruber/balanced-match.git"
8
+ },
9
+ "homepage": "https://github.com/juliangruber/balanced-match",
10
+ "main": "index.js",
11
+ "scripts": {
12
+ "test": "tape test/test.js",
13
+ "bench": "matcha test/bench.js"
14
+ },
15
+ "devDependencies": {
16
+ "matcha": "^0.7.0",
17
+ "tape": "^4.6.0"
18
+ },
19
+ "keywords": [
20
+ "match",
21
+ "regexp",
22
+ "test",
23
+ "balanced",
24
+ "parse"
25
+ ],
26
+ "author": {
27
+ "name": "Julian Gruber",
28
+ "email": "mail@juliangruber.com",
29
+ "url": "http://juliangruber.com"
30
+ },
31
+ "license": "MIT",
32
+ "testling": {
33
+ "files": "test/*.js",
34
+ "browsers": [
35
+ "ie/8..latest",
36
+ "firefox/20..latest",
37
+ "firefox/nightly",
38
+ "chrome/25..latest",
39
+ "chrome/canary",
40
+ "opera/12..latest",
41
+ "opera/next",
42
+ "safari/5.1..latest",
43
+ "ipad/6.0..latest",
44
+ "iphone/6.0..latest",
45
+ "android-browser/4.2..latest"
46
+ ]
47
+ }
48
+ }
node_modules/binary-extensions/binary-extensions.json ADDED
@@ -0,0 +1,260 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ "3dm",
3
+ "3ds",
4
+ "3g2",
5
+ "3gp",
6
+ "7z",
7
+ "a",
8
+ "aac",
9
+ "adp",
10
+ "ai",
11
+ "aif",
12
+ "aiff",
13
+ "alz",
14
+ "ape",
15
+ "apk",
16
+ "appimage",
17
+ "ar",
18
+ "arj",
19
+ "asf",
20
+ "au",
21
+ "avi",
22
+ "bak",
23
+ "baml",
24
+ "bh",
25
+ "bin",
26
+ "bk",
27
+ "bmp",
28
+ "btif",
29
+ "bz2",
30
+ "bzip2",
31
+ "cab",
32
+ "caf",
33
+ "cgm",
34
+ "class",
35
+ "cmx",
36
+ "cpio",
37
+ "cr2",
38
+ "cur",
39
+ "dat",
40
+ "dcm",
41
+ "deb",
42
+ "dex",
43
+ "djvu",
44
+ "dll",
45
+ "dmg",
46
+ "dng",
47
+ "doc",
48
+ "docm",
49
+ "docx",
50
+ "dot",
51
+ "dotm",
52
+ "dra",
53
+ "DS_Store",
54
+ "dsk",
55
+ "dts",
56
+ "dtshd",
57
+ "dvb",
58
+ "dwg",
59
+ "dxf",
60
+ "ecelp4800",
61
+ "ecelp7470",
62
+ "ecelp9600",
63
+ "egg",
64
+ "eol",
65
+ "eot",
66
+ "epub",
67
+ "exe",
68
+ "f4v",
69
+ "fbs",
70
+ "fh",
71
+ "fla",
72
+ "flac",
73
+ "flatpak",
74
+ "fli",
75
+ "flv",
76
+ "fpx",
77
+ "fst",
78
+ "fvt",
79
+ "g3",
80
+ "gh",
81
+ "gif",
82
+ "graffle",
83
+ "gz",
84
+ "gzip",
85
+ "h261",
86
+ "h263",
87
+ "h264",
88
+ "icns",
89
+ "ico",
90
+ "ief",
91
+ "img",
92
+ "ipa",
93
+ "iso",
94
+ "jar",
95
+ "jpeg",
96
+ "jpg",
97
+ "jpgv",
98
+ "jpm",
99
+ "jxr",
100
+ "key",
101
+ "ktx",
102
+ "lha",
103
+ "lib",
104
+ "lvp",
105
+ "lz",
106
+ "lzh",
107
+ "lzma",
108
+ "lzo",
109
+ "m3u",
110
+ "m4a",
111
+ "m4v",
112
+ "mar",
113
+ "mdi",
114
+ "mht",
115
+ "mid",
116
+ "midi",
117
+ "mj2",
118
+ "mka",
119
+ "mkv",
120
+ "mmr",
121
+ "mng",
122
+ "mobi",
123
+ "mov",
124
+ "movie",
125
+ "mp3",
126
+ "mp4",
127
+ "mp4a",
128
+ "mpeg",
129
+ "mpg",
130
+ "mpga",
131
+ "mxu",
132
+ "nef",
133
+ "npx",
134
+ "numbers",
135
+ "nupkg",
136
+ "o",
137
+ "odp",
138
+ "ods",
139
+ "odt",
140
+ "oga",
141
+ "ogg",
142
+ "ogv",
143
+ "otf",
144
+ "ott",
145
+ "pages",
146
+ "pbm",
147
+ "pcx",
148
+ "pdb",
149
+ "pdf",
150
+ "pea",
151
+ "pgm",
152
+ "pic",
153
+ "png",
154
+ "pnm",
155
+ "pot",
156
+ "potm",
157
+ "potx",
158
+ "ppa",
159
+ "ppam",
160
+ "ppm",
161
+ "pps",
162
+ "ppsm",
163
+ "ppsx",
164
+ "ppt",
165
+ "pptm",
166
+ "pptx",
167
+ "psd",
168
+ "pya",
169
+ "pyc",
170
+ "pyo",
171
+ "pyv",
172
+ "qt",
173
+ "rar",
174
+ "ras",
175
+ "raw",
176
+ "resources",
177
+ "rgb",
178
+ "rip",
179
+ "rlc",
180
+ "rmf",
181
+ "rmvb",
182
+ "rpm",
183
+ "rtf",
184
+ "rz",
185
+ "s3m",
186
+ "s7z",
187
+ "scpt",
188
+ "sgi",
189
+ "shar",
190
+ "snap",
191
+ "sil",
192
+ "sketch",
193
+ "slk",
194
+ "smv",
195
+ "snk",
196
+ "so",
197
+ "stl",
198
+ "suo",
199
+ "sub",
200
+ "swf",
201
+ "tar",
202
+ "tbz",
203
+ "tbz2",
204
+ "tga",
205
+ "tgz",
206
+ "thmx",
207
+ "tif",
208
+ "tiff",
209
+ "tlz",
210
+ "ttc",
211
+ "ttf",
212
+ "txz",
213
+ "udf",
214
+ "uvh",
215
+ "uvi",
216
+ "uvm",
217
+ "uvp",
218
+ "uvs",
219
+ "uvu",
220
+ "viv",
221
+ "vob",
222
+ "war",
223
+ "wav",
224
+ "wax",
225
+ "wbmp",
226
+ "wdp",
227
+ "weba",
228
+ "webm",
229
+ "webp",
230
+ "whl",
231
+ "wim",
232
+ "wm",
233
+ "wma",
234
+ "wmv",
235
+ "wmx",
236
+ "woff",
237
+ "woff2",
238
+ "wrm",
239
+ "wvx",
240
+ "xbm",
241
+ "xif",
242
+ "xla",
243
+ "xlam",
244
+ "xls",
245
+ "xlsb",
246
+ "xlsm",
247
+ "xlsx",
248
+ "xlt",
249
+ "xltm",
250
+ "xltx",
251
+ "xm",
252
+ "xmind",
253
+ "xpi",
254
+ "xpm",
255
+ "xwd",
256
+ "xz",
257
+ "z",
258
+ "zip",
259
+ "zipx"
260
+ ]
node_modules/binary-extensions/binary-extensions.json.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ declare const binaryExtensionsJson: readonly string[];
2
+
3
+ export = binaryExtensionsJson;
node_modules/binary-extensions/index.d.ts ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ List of binary file extensions.
3
+
4
+ @example
5
+ ```
6
+ import binaryExtensions = require('binary-extensions');
7
+
8
+ console.log(binaryExtensions);
9
+ //=> ['3ds', '3g2', …]
10
+ ```
11
+ */
12
+ declare const binaryExtensions: readonly string[];
13
+
14
+ export = binaryExtensions;
node_modules/binary-extensions/index.js ADDED
@@ -0,0 +1 @@
 
 
1
+ module.exports = require('./binary-extensions.json');
node_modules/binary-extensions/license ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com), Paul Miller (https://paulmillr.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
node_modules/binary-extensions/package.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "binary-extensions",
3
+ "version": "2.2.0",
4
+ "description": "List of binary file extensions",
5
+ "license": "MIT",
6
+ "repository": "sindresorhus/binary-extensions",
7
+ "author": {
8
+ "name": "Sindre Sorhus",
9
+ "email": "sindresorhus@gmail.com",
10
+ "url": "sindresorhus.com"
11
+ },
12
+ "engines": {
13
+ "node": ">=8"
14
+ },
15
+ "scripts": {
16
+ "test": "xo && ava && tsd"
17
+ },
18
+ "files": [
19
+ "index.js",
20
+ "index.d.ts",
21
+ "binary-extensions.json",
22
+ "binary-extensions.json.d.ts"
23
+ ],
24
+ "keywords": [
25
+ "binary",
26
+ "extensions",
27
+ "extension",
28
+ "file",
29
+ "json",
30
+ "list",
31
+ "array"
32
+ ],
33
+ "devDependencies": {
34
+ "ava": "^1.4.1",
35
+ "tsd": "^0.7.2",
36
+ "xo": "^0.24.0"
37
+ }
38
+ }
node_modules/binary-extensions/readme.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # binary-extensions
2
+
3
+ > List of binary file extensions
4
+
5
+ The list is just a [JSON file](binary-extensions.json) and can be used anywhere.
6
+
7
+
8
+ ## Install
9
+
10
+ ```
11
+ $ npm install binary-extensions
12
+ ```
13
+
14
+
15
+ ## Usage
16
+
17
+ ```js
18
+ const binaryExtensions = require('binary-extensions');
19
+
20
+ console.log(binaryExtensions);
21
+ //=> ['3ds', '3g2', …]
22
+ ```
23
+
24
+
25
+ ## Related
26
+
27
+ - [is-binary-path](https://github.com/sindresorhus/is-binary-path) - Check if a filepath is a binary file
28
+ - [text-extensions](https://github.com/sindresorhus/text-extensions) - List of text file extensions
29
+
30
+
31
+ ---
32
+
33
+ <div align="center">
34
+ <b>
35
+ <a href="https://tidelift.com/subscription/pkg/npm-binary-extensions?utm_source=npm-binary-extensions&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
36
+ </b>
37
+ <br>
38
+ <sub>
39
+ Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
40
+ </sub>
41
+ </div>
node_modules/brace-expansion/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
node_modules/brace-expansion/README.md ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # brace-expansion
2
+
3
+ [Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html),
4
+ as known from sh/bash, in JavaScript.
5
+
6
+ [![build status](https://secure.travis-ci.org/juliangruber/brace-expansion.svg)](http://travis-ci.org/juliangruber/brace-expansion)
7
+ [![downloads](https://img.shields.io/npm/dm/brace-expansion.svg)](https://www.npmjs.org/package/brace-expansion)
8
+ [![Greenkeeper badge](https://badges.greenkeeper.io/juliangruber/brace-expansion.svg)](https://greenkeeper.io/)
9
+
10
+ [![testling badge](https://ci.testling.com/juliangruber/brace-expansion.png)](https://ci.testling.com/juliangruber/brace-expansion)
11
+
12
+ ## Example
13
+
14
+ ```js
15
+ var expand = require('brace-expansion');
16
+
17
+ expand('file-{a,b,c}.jpg')
18
+ // => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']
19
+
20
+ expand('-v{,,}')
21
+ // => ['-v', '-v', '-v']
22
+
23
+ expand('file{0..2}.jpg')
24
+ // => ['file0.jpg', 'file1.jpg', 'file2.jpg']
25
+
26
+ expand('file-{a..c}.jpg')
27
+ // => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']
28
+
29
+ expand('file{2..0}.jpg')
30
+ // => ['file2.jpg', 'file1.jpg', 'file0.jpg']
31
+
32
+ expand('file{0..4..2}.jpg')
33
+ // => ['file0.jpg', 'file2.jpg', 'file4.jpg']
34
+
35
+ expand('file-{a..e..2}.jpg')
36
+ // => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg']
37
+
38
+ expand('file{00..10..5}.jpg')
39
+ // => ['file00.jpg', 'file05.jpg', 'file10.jpg']
40
+
41
+ expand('{{A..C},{a..c}}')
42
+ // => ['A', 'B', 'C', 'a', 'b', 'c']
43
+
44
+ expand('ppp{,config,oe{,conf}}')
45
+ // => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf']
46
+ ```
47
+
48
+ ## API
49
+
50
+ ```js
51
+ var expand = require('brace-expansion');
52
+ ```
53
+
54
+ ### var expanded = expand(str)
55
+
56
+ Return an array of all possible and valid expansions of `str`. If none are
57
+ found, `[str]` is returned.
58
+
59
+ Valid expansions are:
60
+
61
+ ```js
62
+ /^(.*,)+(.+)?$/
63
+ // {a,b,...}
64
+ ```
65
+
66
+ A comma separated list of options, like `{a,b}` or `{a,{b,c}}` or `{,a,}`.
67
+
68
+ ```js
69
+ /^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
70
+ // {x..y[..incr]}
71
+ ```
72
+
73
+ A numeric sequence from `x` to `y` inclusive, with optional increment.
74
+ If `x` or `y` start with a leading `0`, all the numbers will be padded
75
+ to have equal length. Negative numbers and backwards iteration work too.
76
+
77
+ ```js
78
+ /^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
79
+ // {x..y[..incr]}
80
+ ```
81
+
82
+ An alphabetic sequence from `x` to `y` inclusive, with optional increment.
83
+ `x` and `y` must be exactly one character, and if given, `incr` must be a
84
+ number.
85
+
86
+ For compatibility reasons, the string `${` is not eligible for brace expansion.
87
+
88
+ ## Installation
89
+
90
+ With [npm](https://npmjs.org) do:
91
+
92
+ ```bash
93
+ npm install brace-expansion
94
+ ```
95
+
96
+ ## Contributors
97
+
98
+ - [Julian Gruber](https://github.com/juliangruber)
99
+ - [Isaac Z. Schlueter](https://github.com/isaacs)
100
+
101
+ ## Sponsors
102
+
103
+ This module is proudly supported by my [Sponsors](https://github.com/juliangruber/sponsors)!
104
+
105
+ Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)!
106
+
107
+ ## License
108
+
109
+ (MIT)
110
+
111
+ Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
112
+
113
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
114
+ this software and associated documentation files (the "Software"), to deal in
115
+ the Software without restriction, including without limitation the rights to
116
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
117
+ of the Software, and to permit persons to whom the Software is furnished to do
118
+ so, subject to the following conditions:
119
+
120
+ The above copyright notice and this permission notice shall be included in all
121
+ copies or substantial portions of the Software.
122
+
123
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
124
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
125
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
126
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
127
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
128
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
129
+ SOFTWARE.
node_modules/brace-expansion/index.js ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var concatMap = require('concat-map');
2
+ var balanced = require('balanced-match');
3
+
4
+ module.exports = expandTop;
5
+
6
+ var escSlash = '\0SLASH'+Math.random()+'\0';
7
+ var escOpen = '\0OPEN'+Math.random()+'\0';
8
+ var escClose = '\0CLOSE'+Math.random()+'\0';
9
+ var escComma = '\0COMMA'+Math.random()+'\0';
10
+ var escPeriod = '\0PERIOD'+Math.random()+'\0';
11
+
12
+ function numeric(str) {
13
+ return parseInt(str, 10) == str
14
+ ? parseInt(str, 10)
15
+ : str.charCodeAt(0);
16
+ }
17
+
18
+ function escapeBraces(str) {
19
+ return str.split('\\\\').join(escSlash)
20
+ .split('\\{').join(escOpen)
21
+ .split('\\}').join(escClose)
22
+ .split('\\,').join(escComma)
23
+ .split('\\.').join(escPeriod);
24
+ }
25
+
26
+ function unescapeBraces(str) {
27
+ return str.split(escSlash).join('\\')
28
+ .split(escOpen).join('{')
29
+ .split(escClose).join('}')
30
+ .split(escComma).join(',')
31
+ .split(escPeriod).join('.');
32
+ }
33
+
34
+
35
+ // Basically just str.split(","), but handling cases
36
+ // where we have nested braced sections, which should be
37
+ // treated as individual members, like {a,{b,c},d}
38
+ function parseCommaParts(str) {
39
+ if (!str)
40
+ return [''];
41
+
42
+ var parts = [];
43
+ var m = balanced('{', '}', str);
44
+
45
+ if (!m)
46
+ return str.split(',');
47
+
48
+ var pre = m.pre;
49
+ var body = m.body;
50
+ var post = m.post;
51
+ var p = pre.split(',');
52
+
53
+ p[p.length-1] += '{' + body + '}';
54
+ var postParts = parseCommaParts(post);
55
+ if (post.length) {
56
+ p[p.length-1] += postParts.shift();
57
+ p.push.apply(p, postParts);
58
+ }
59
+
60
+ parts.push.apply(parts, p);
61
+
62
+ return parts;
63
+ }
64
+
65
+ function expandTop(str) {
66
+ if (!str)
67
+ return [];
68
+
69
+ // I don't know why Bash 4.3 does this, but it does.
70
+ // Anything starting with {} will have the first two bytes preserved
71
+ // but *only* at the top level, so {},a}b will not expand to anything,
72
+ // but a{},b}c will be expanded to [a}c,abc].
73
+ // One could argue that this is a bug in Bash, but since the goal of
74
+ // this module is to match Bash's rules, we escape a leading {}
75
+ if (str.substr(0, 2) === '{}') {
76
+ str = '\\{\\}' + str.substr(2);
77
+ }
78
+
79
+ return expand(escapeBraces(str), true).map(unescapeBraces);
80
+ }
81
+
82
+ function identity(e) {
83
+ return e;
84
+ }
85
+
86
+ function embrace(str) {
87
+ return '{' + str + '}';
88
+ }
89
+ function isPadded(el) {
90
+ return /^-?0\d/.test(el);
91
+ }
92
+
93
+ function lte(i, y) {
94
+ return i <= y;
95
+ }
96
+ function gte(i, y) {
97
+ return i >= y;
98
+ }
99
+
100
+ function expand(str, isTop) {
101
+ var expansions = [];
102
+
103
+ var m = balanced('{', '}', str);
104
+ if (!m || /\$$/.test(m.pre)) return [str];
105
+
106
+ var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
107
+ var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
108
+ var isSequence = isNumericSequence || isAlphaSequence;
109
+ var isOptions = m.body.indexOf(',') >= 0;
110
+ if (!isSequence && !isOptions) {
111
+ // {a},b}
112
+ if (m.post.match(/,.*\}/)) {
113
+ str = m.pre + '{' + m.body + escClose + m.post;
114
+ return expand(str);
115
+ }
116
+ return [str];
117
+ }
118
+
119
+ var n;
120
+ if (isSequence) {
121
+ n = m.body.split(/\.\./);
122
+ } else {
123
+ n = parseCommaParts(m.body);
124
+ if (n.length === 1) {
125
+ // x{{a,b}}y ==> x{a}y x{b}y
126
+ n = expand(n[0], false).map(embrace);
127
+ if (n.length === 1) {
128
+ var post = m.post.length
129
+ ? expand(m.post, false)
130
+ : [''];
131
+ return post.map(function(p) {
132
+ return m.pre + n[0] + p;
133
+ });
134
+ }
135
+ }
136
+ }
137
+
138
+ // at this point, n is the parts, and we know it's not a comma set
139
+ // with a single entry.
140
+
141
+ // no need to expand pre, since it is guaranteed to be free of brace-sets
142
+ var pre = m.pre;
143
+ var post = m.post.length
144
+ ? expand(m.post, false)
145
+ : [''];
146
+
147
+ var N;
148
+
149
+ if (isSequence) {
150
+ var x = numeric(n[0]);
151
+ var y = numeric(n[1]);
152
+ var width = Math.max(n[0].length, n[1].length)
153
+ var incr = n.length == 3
154
+ ? Math.abs(numeric(n[2]))
155
+ : 1;
156
+ var test = lte;
157
+ var reverse = y < x;
158
+ if (reverse) {
159
+ incr *= -1;
160
+ test = gte;
161
+ }
162
+ var pad = n.some(isPadded);
163
+
164
+ N = [];
165
+
166
+ for (var i = x; test(i, y); i += incr) {
167
+ var c;
168
+ if (isAlphaSequence) {
169
+ c = String.fromCharCode(i);
170
+ if (c === '\\')
171
+ c = '';
172
+ } else {
173
+ c = String(i);
174
+ if (pad) {
175
+ var need = width - c.length;
176
+ if (need > 0) {
177
+ var z = new Array(need + 1).join('0');
178
+ if (i < 0)
179
+ c = '-' + z + c.slice(1);
180
+ else
181
+ c = z + c;
182
+ }
183
+ }
184
+ }
185
+ N.push(c);
186
+ }
187
+ } else {
188
+ N = concatMap(n, function(el) { return expand(el, false) });
189
+ }
190
+
191
+ for (var j = 0; j < N.length; j++) {
192
+ for (var k = 0; k < post.length; k++) {
193
+ var expansion = pre + N[j] + post[k];
194
+ if (!isTop || isSequence || expansion)
195
+ expansions.push(expansion);
196
+ }
197
+ }
198
+
199
+ return expansions;
200
+ }
201
+
node_modules/brace-expansion/package.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "brace-expansion",
3
+ "description": "Brace expansion as known from sh/bash",
4
+ "version": "1.1.11",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git://github.com/juliangruber/brace-expansion.git"
8
+ },
9
+ "homepage": "https://github.com/juliangruber/brace-expansion",
10
+ "main": "index.js",
11
+ "scripts": {
12
+ "test": "tape test/*.js",
13
+ "gentest": "bash test/generate.sh",
14
+ "bench": "matcha test/perf/bench.js"
15
+ },
16
+ "dependencies": {
17
+ "balanced-match": "^1.0.0",
18
+ "concat-map": "0.0.1"
19
+ },
20
+ "devDependencies": {
21
+ "matcha": "^0.7.0",
22
+ "tape": "^4.6.0"
23
+ },
24
+ "keywords": [],
25
+ "author": {
26
+ "name": "Julian Gruber",
27
+ "email": "mail@juliangruber.com",
28
+ "url": "http://juliangruber.com"
29
+ },
30
+ "license": "MIT",
31
+ "testling": {
32
+ "files": "test/*.js",
33
+ "browsers": [
34
+ "ie/8..latest",
35
+ "firefox/20..latest",
36
+ "firefox/nightly",
37
+ "chrome/25..latest",
38
+ "chrome/canary",
39
+ "opera/12..latest",
40
+ "opera/next",
41
+ "safari/5.1..latest",
42
+ "ipad/6.0..latest",
43
+ "iphone/6.0..latest",
44
+ "android-browser/4.2..latest"
45
+ ]
46
+ }
47
+ }
node_modules/braces/CHANGELOG.md ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Release history
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
+
8
+ <details>
9
+ <summary><strong>Guiding Principles</strong></summary>
10
+
11
+ - Changelogs are for humans, not machines.
12
+ - There should be an entry for every single version.
13
+ - The same types of changes should be grouped.
14
+ - Versions and sections should be linkable.
15
+ - The latest version comes first.
16
+ - The release date of each versions is displayed.
17
+ - Mention whether you follow Semantic Versioning.
18
+
19
+ </details>
20
+
21
+ <details>
22
+ <summary><strong>Types of changes</strong></summary>
23
+
24
+ Changelog entries are classified using the following labels _(from [keep-a-changelog](http://keepachangelog.com/)_):
25
+
26
+ - `Added` for new features.
27
+ - `Changed` for changes in existing functionality.
28
+ - `Deprecated` for soon-to-be removed features.
29
+ - `Removed` for now removed features.
30
+ - `Fixed` for any bug fixes.
31
+ - `Security` in case of vulnerabilities.
32
+
33
+ </details>
34
+
35
+ ## [3.0.0] - 2018-04-08
36
+
37
+ v3.0 is a complete refactor, resulting in a faster, smaller codebase, with fewer deps, and a more accurate parser and compiler.
38
+
39
+ **Breaking Changes**
40
+
41
+ - The undocumented `.makeRe` method was removed
42
+
43
+ **Non-breaking changes**
44
+
45
+ - Caching was removed
46
+
47
+ ## [2.3.2] - 2018-04-08
48
+
49
+ - start refactoring
50
+ - cover sets
51
+ - better range handling
52
+
53
+ ## [2.3.1] - 2018-02-17
54
+
55
+ - Remove unnecessary escape in Regex. (#14)
56
+
57
+ ## [2.3.0] - 2017-10-19
58
+
59
+ - minor code reorganization
60
+ - optimize regex
61
+ - expose `maxLength` option
62
+
63
+ ## [2.2.1] - 2017-05-30
64
+
65
+ - don't condense when braces contain extglobs
66
+
67
+ ## [2.2.0] - 2017-05-28
68
+
69
+ - ensure word boundaries are preserved
70
+ - fixes edge case where extglob characters precede a brace pattern
71
+
72
+ ## [2.1.1] - 2017-04-27
73
+
74
+ - use snapdragon-node
75
+ - handle edge case
76
+ - optimizations, lint
77
+
78
+ ## [2.0.4] - 2017-04-11
79
+
80
+ - pass opts to compiler
81
+ - minor optimization in create method
82
+ - re-write parser handlers to remove negation regex
83
+
84
+ ## [2.0.3] - 2016-12-10
85
+
86
+ - use split-string
87
+ - clear queue at the end
88
+ - adds sequences example
89
+ - add unit tests
90
+
91
+ ## [2.0.2] - 2016-10-21
92
+
93
+ - fix comma handling in nested extglobs
94
+
95
+ ## [2.0.1] - 2016-10-20
96
+
97
+ - add comments
98
+ - more tests, ensure quotes are stripped
99
+
100
+ ## [2.0.0] - 2016-10-19
101
+
102
+ - don't expand braces inside character classes
103
+ - add quantifier pattern
104
+
105
+ ## [1.8.5] - 2016-05-21
106
+
107
+ - Refactor (#10)
108
+
109
+ ## [1.8.4] - 2016-04-20
110
+
111
+ - fixes https://github.com/jonschlinkert/micromatch/issues/66
112
+
113
+ ## [1.8.0] - 2015-03-18
114
+
115
+ - adds exponent examples, tests
116
+ - fixes the first example in https://github.com/jonschlinkert/micromatch/issues/38
117
+
118
+ ## [1.6.0] - 2015-01-30
119
+
120
+ - optimizations, `bash` mode:
121
+ - improve path escaping
122
+
123
+ ## [1.5.0] - 2015-01-28
124
+
125
+ - Merge pull request #5 from eush77/lib-files
126
+
127
+ ## [1.4.0] - 2015-01-24
128
+
129
+ - add extglob tests
130
+ - externalize exponent function
131
+ - better whitespace handling
132
+
133
+ ## [1.3.0] - 2015-01-24
134
+
135
+ - make regex patterns explicity
136
+
137
+ ## [1.1.0] - 2015-01-11
138
+
139
+ - don't create a match group with `makeRe`
140
+
141
+ ## [1.0.0] - 2014-12-23
142
+
143
+ - Merge commit '97b05f5544f8348736a8efaecf5c32bbe3e2ad6e'
144
+ - support empty brace syntax
145
+ - better bash coverage
146
+ - better support for regex strings
147
+
148
+ ## [0.1.4] - 2014-11-14
149
+
150
+ - improve recognition of bad args, recognize mismatched argument types
151
+ - support escaping
152
+ - remove pathname-expansion
153
+ - support whitespace in patterns
154
+
155
+ ## [0.1.0]
156
+
157
+ - first commit
158
+
159
+ [2.3.2]: https://github.com/micromatch/braces/compare/2.3.1...2.3.2
160
+ [2.3.1]: https://github.com/micromatch/braces/compare/2.3.0...2.3.1
161
+ [2.3.0]: https://github.com/micromatch/braces/compare/2.2.1...2.3.0
162
+ [2.2.1]: https://github.com/micromatch/braces/compare/2.2.0...2.2.1
163
+ [2.2.0]: https://github.com/micromatch/braces/compare/2.1.1...2.2.0
164
+ [2.1.1]: https://github.com/micromatch/braces/compare/2.1.0...2.1.1
165
+ [2.1.0]: https://github.com/micromatch/braces/compare/2.0.4...2.1.0
166
+ [2.0.4]: https://github.com/micromatch/braces/compare/2.0.3...2.0.4
167
+ [2.0.3]: https://github.com/micromatch/braces/compare/2.0.2...2.0.3
168
+ [2.0.2]: https://github.com/micromatch/braces/compare/2.0.1...2.0.2
169
+ [2.0.1]: https://github.com/micromatch/braces/compare/2.0.0...2.0.1
170
+ [2.0.0]: https://github.com/micromatch/braces/compare/1.8.5...2.0.0
171
+ [1.8.5]: https://github.com/micromatch/braces/compare/1.8.4...1.8.5
172
+ [1.8.4]: https://github.com/micromatch/braces/compare/1.8.0...1.8.4
173
+ [1.8.0]: https://github.com/micromatch/braces/compare/1.6.0...1.8.0
174
+ [1.6.0]: https://github.com/micromatch/braces/compare/1.5.0...1.6.0
175
+ [1.5.0]: https://github.com/micromatch/braces/compare/1.4.0...1.5.0
176
+ [1.4.0]: https://github.com/micromatch/braces/compare/1.3.0...1.4.0
177
+ [1.3.0]: https://github.com/micromatch/braces/compare/1.2.0...1.3.0
178
+ [1.2.0]: https://github.com/micromatch/braces/compare/1.1.0...1.2.0
179
+ [1.1.0]: https://github.com/micromatch/braces/compare/1.0.0...1.1.0
180
+ [1.0.0]: https://github.com/micromatch/braces/compare/0.1.4...1.0.0
181
+ [0.1.4]: https://github.com/micromatch/braces/compare/0.1.0...0.1.4
182
+
183
+ [Unreleased]: https://github.com/micromatch/braces/compare/0.1.0...HEAD
184
+ [keep-a-changelog]: https://github.com/olivierlacan/keep-a-changelog
node_modules/braces/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-2018, Jon Schlinkert.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
node_modules/braces/README.md ADDED
@@ -0,0 +1,593 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # braces [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/braces.svg?style=flat)](https://www.npmjs.com/package/braces) [![NPM monthly downloads](https://img.shields.io/npm/dm/braces.svg?style=flat)](https://npmjs.org/package/braces) [![NPM total downloads](https://img.shields.io/npm/dt/braces.svg?style=flat)](https://npmjs.org/package/braces) [![Linux Build Status](https://img.shields.io/travis/micromatch/braces.svg?style=flat&label=Travis)](https://travis-ci.org/micromatch/braces)
2
+
3
+ > Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.
4
+
5
+ Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
6
+
7
+ ## Install
8
+
9
+ Install with [npm](https://www.npmjs.com/):
10
+
11
+ ```sh
12
+ $ npm install --save braces
13
+ ```
14
+
15
+ ## v3.0.0 Released!!
16
+
17
+ See the [changelog](CHANGELOG.md) for details.
18
+
19
+ ## Why use braces?
20
+
21
+ Brace patterns make globs more powerful by adding the ability to match specific ranges and sequences of characters.
22
+
23
+ * **Accurate** - complete support for the [Bash 4.3 Brace Expansion](www.gnu.org/software/bash/) specification (passes all of the Bash braces tests)
24
+ * **[fast and performant](#benchmarks)** - Starts fast, runs fast and [scales well](#performance) as patterns increase in complexity.
25
+ * **Organized code base** - The parser and compiler are easy to maintain and update when edge cases crop up.
26
+ * **Well-tested** - Thousands of test assertions, and passes all of the Bash, minimatch, and [brace-expansion](https://github.com/juliangruber/brace-expansion) unit tests (as of the date this was written).
27
+ * **Safer** - You shouldn't have to worry about users defining aggressive or malicious brace patterns that can break your application. Braces takes measures to prevent malicious regex that can be used for DDoS attacks (see [catastrophic backtracking](https://www.regular-expressions.info/catastrophic.html)).
28
+ * [Supports lists](#lists) - (aka "sets") `a/{b,c}/d` => `['a/b/d', 'a/c/d']`
29
+ * [Supports sequences](#sequences) - (aka "ranges") `{01..03}` => `['01', '02', '03']`
30
+ * [Supports steps](#steps) - (aka "increments") `{2..10..2}` => `['2', '4', '6', '8', '10']`
31
+ * [Supports escaping](#escaping) - To prevent evaluation of special characters.
32
+
33
+ ## Usage
34
+
35
+ The main export is a function that takes one or more brace `patterns` and `options`.
36
+
37
+ ```js
38
+ const braces = require('braces');
39
+ // braces(patterns[, options]);
40
+
41
+ console.log(braces(['{01..05}', '{a..e}']));
42
+ //=> ['(0[1-5])', '([a-e])']
43
+
44
+ console.log(braces(['{01..05}', '{a..e}'], { expand: true }));
45
+ //=> ['01', '02', '03', '04', '05', 'a', 'b', 'c', 'd', 'e']
46
+ ```
47
+
48
+ ### Brace Expansion vs. Compilation
49
+
50
+ By default, brace patterns are compiled into strings that are optimized for creating regular expressions and matching.
51
+
52
+ **Compiled**
53
+
54
+ ```js
55
+ console.log(braces('a/{x,y,z}/b'));
56
+ //=> ['a/(x|y|z)/b']
57
+ console.log(braces(['a/{01..20}/b', 'a/{1..5}/b']));
58
+ //=> [ 'a/(0[1-9]|1[0-9]|20)/b', 'a/([1-5])/b' ]
59
+ ```
60
+
61
+ **Expanded**
62
+
63
+ Enable brace expansion by setting the `expand` option to true, or by using [braces.expand()](#expand) (returns an array similar to what you'd expect from Bash, or `echo {1..5}`, or [minimatch](https://github.com/isaacs/minimatch)):
64
+
65
+ ```js
66
+ console.log(braces('a/{x,y,z}/b', { expand: true }));
67
+ //=> ['a/x/b', 'a/y/b', 'a/z/b']
68
+
69
+ console.log(braces.expand('{01..10}'));
70
+ //=> ['01','02','03','04','05','06','07','08','09','10']
71
+ ```
72
+
73
+ ### Lists
74
+
75
+ Expand lists (like Bash "sets"):
76
+
77
+ ```js
78
+ console.log(braces('a/{foo,bar,baz}/*.js'));
79
+ //=> ['a/(foo|bar|baz)/*.js']
80
+
81
+ console.log(braces.expand('a/{foo,bar,baz}/*.js'));
82
+ //=> ['a/foo/*.js', 'a/bar/*.js', 'a/baz/*.js']
83
+ ```
84
+
85
+ ### Sequences
86
+
87
+ Expand ranges of characters (like Bash "sequences"):
88
+
89
+ ```js
90
+ console.log(braces.expand('{1..3}')); // ['1', '2', '3']
91
+ console.log(braces.expand('a/{1..3}/b')); // ['a/1/b', 'a/2/b', 'a/3/b']
92
+ console.log(braces('{a..c}', { expand: true })); // ['a', 'b', 'c']
93
+ console.log(braces('foo/{a..c}', { expand: true })); // ['foo/a', 'foo/b', 'foo/c']
94
+
95
+ // supports zero-padded ranges
96
+ console.log(braces('a/{01..03}/b')); //=> ['a/(0[1-3])/b']
97
+ console.log(braces('a/{001..300}/b')); //=> ['a/(0{2}[1-9]|0[1-9][0-9]|[12][0-9]{2}|300)/b']
98
+ ```
99
+
100
+ See [fill-range](https://github.com/jonschlinkert/fill-range) for all available range-expansion options.
101
+
102
+ ### Steppped ranges
103
+
104
+ Steps, or increments, may be used with ranges:
105
+
106
+ ```js
107
+ console.log(braces.expand('{2..10..2}'));
108
+ //=> ['2', '4', '6', '8', '10']
109
+
110
+ console.log(braces('{2..10..2}'));
111
+ //=> ['(2|4|6|8|10)']
112
+ ```
113
+
114
+ When the [.optimize](#optimize) method is used, or [options.optimize](#optionsoptimize) is set to true, sequences are passed to [to-regex-range](https://github.com/jonschlinkert/to-regex-range) for expansion.
115
+
116
+ ### Nesting
117
+
118
+ Brace patterns may be nested. The results of each expanded string are not sorted, and left to right order is preserved.
119
+
120
+ **"Expanded" braces**
121
+
122
+ ```js
123
+ console.log(braces.expand('a{b,c,/{x,y}}/e'));
124
+ //=> ['ab/e', 'ac/e', 'a/x/e', 'a/y/e']
125
+
126
+ console.log(braces.expand('a/{x,{1..5},y}/c'));
127
+ //=> ['a/x/c', 'a/1/c', 'a/2/c', 'a/3/c', 'a/4/c', 'a/5/c', 'a/y/c']
128
+ ```
129
+
130
+ **"Optimized" braces**
131
+
132
+ ```js
133
+ console.log(braces('a{b,c,/{x,y}}/e'));
134
+ //=> ['a(b|c|/(x|y))/e']
135
+
136
+ console.log(braces('a/{x,{1..5},y}/c'));
137
+ //=> ['a/(x|([1-5])|y)/c']
138
+ ```
139
+
140
+ ### Escaping
141
+
142
+ **Escaping braces**
143
+
144
+ A brace pattern will not be expanded or evaluted if _either the opening or closing brace is escaped_:
145
+
146
+ ```js
147
+ console.log(braces.expand('a\\{d,c,b}e'));
148
+ //=> ['a{d,c,b}e']
149
+
150
+ console.log(braces.expand('a{d,c,b\\}e'));
151
+ //=> ['a{d,c,b}e']
152
+ ```
153
+
154
+ **Escaping commas**
155
+
156
+ Commas inside braces may also be escaped:
157
+
158
+ ```js
159
+ console.log(braces.expand('a{b\\,c}d'));
160
+ //=> ['a{b,c}d']
161
+
162
+ console.log(braces.expand('a{d\\,c,b}e'));
163
+ //=> ['ad,ce', 'abe']
164
+ ```
165
+
166
+ **Single items**
167
+
168
+ Following bash conventions, a brace pattern is also not expanded when it contains a single character:
169
+
170
+ ```js
171
+ console.log(braces.expand('a{b}c'));
172
+ //=> ['a{b}c']
173
+ ```
174
+
175
+ ## Options
176
+
177
+ ### options.maxLength
178
+
179
+ **Type**: `Number`
180
+
181
+ **Default**: `65,536`
182
+
183
+ **Description**: Limit the length of the input string. Useful when the input string is generated or your application allows users to pass a string, et cetera.
184
+
185
+ ```js
186
+ console.log(braces('a/{b,c}/d', { maxLength: 3 })); //=> throws an error
187
+ ```
188
+
189
+ ### options.expand
190
+
191
+ **Type**: `Boolean`
192
+
193
+ **Default**: `undefined`
194
+
195
+ **Description**: Generate an "expanded" brace pattern (alternatively you can use the `braces.expand()` method, which does the same thing).
196
+
197
+ ```js
198
+ console.log(braces('a/{b,c}/d', { expand: true }));
199
+ //=> [ 'a/b/d', 'a/c/d' ]
200
+ ```
201
+
202
+ ### options.nodupes
203
+
204
+ **Type**: `Boolean`
205
+
206
+ **Default**: `undefined`
207
+
208
+ **Description**: Remove duplicates from the returned array.
209
+
210
+ ### options.rangeLimit
211
+
212
+ **Type**: `Number`
213
+
214
+ **Default**: `1000`
215
+
216
+ **Description**: To prevent malicious patterns from being passed by users, an error is thrown when `braces.expand()` is used or `options.expand` is true and the generated range will exceed the `rangeLimit`.
217
+
218
+ You can customize `options.rangeLimit` or set it to `Inifinity` to disable this altogether.
219
+
220
+ **Examples**
221
+
222
+ ```js
223
+ // pattern exceeds the "rangeLimit", so it's optimized automatically
224
+ console.log(braces.expand('{1..1000}'));
225
+ //=> ['([1-9]|[1-9][0-9]{1,2}|1000)']
226
+
227
+ // pattern does not exceed "rangeLimit", so it's NOT optimized
228
+ console.log(braces.expand('{1..100}'));
229
+ //=> ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', '100']
230
+ ```
231
+
232
+ ### options.transform
233
+
234
+ **Type**: `Function`
235
+
236
+ **Default**: `undefined`
237
+
238
+ **Description**: Customize range expansion.
239
+
240
+ **Example: Transforming non-numeric values**
241
+
242
+ ```js
243
+ const alpha = braces.expand('x/{a..e}/y', {
244
+ transform(value, index) {
245
+ // When non-numeric values are passed, "value" is a character code.
246
+ return 'foo/' + String.fromCharCode(value) + '-' + index;
247
+ }
248
+ });
249
+ console.log(alpha);
250
+ //=> [ 'x/foo/a-0/y', 'x/foo/b-1/y', 'x/foo/c-2/y', 'x/foo/d-3/y', 'x/foo/e-4/y' ]
251
+ ```
252
+
253
+ **Example: Transforming numeric values**
254
+
255
+ ```js
256
+ const numeric = braces.expand('{1..5}', {
257
+ transform(value) {
258
+ // when numeric values are passed, "value" is a number
259
+ return 'foo/' + value * 2;
260
+ }
261
+ });
262
+ console.log(numeric);
263
+ //=> [ 'foo/2', 'foo/4', 'foo/6', 'foo/8', 'foo/10' ]
264
+ ```
265
+
266
+ ### options.quantifiers
267
+
268
+ **Type**: `Boolean`
269
+
270
+ **Default**: `undefined`
271
+
272
+ **Description**: In regular expressions, quanitifiers can be used to specify how many times a token can be repeated. For example, `a{1,3}` will match the letter `a` one to three times.
273
+
274
+ Unfortunately, regex quantifiers happen to share the same syntax as [Bash lists](#lists)
275
+
276
+ The `quantifiers` option tells braces to detect when [regex quantifiers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#quantifiers) are defined in the given pattern, and not to try to expand them as lists.
277
+
278
+ **Examples**
279
+
280
+ ```js
281
+ const braces = require('braces');
282
+ console.log(braces('a/b{1,3}/{x,y,z}'));
283
+ //=> [ 'a/b(1|3)/(x|y|z)' ]
284
+ console.log(braces('a/b{1,3}/{x,y,z}', {quantifiers: true}));
285
+ //=> [ 'a/b{1,3}/(x|y|z)' ]
286
+ console.log(braces('a/b{1,3}/{x,y,z}', {quantifiers: true, expand: true}));
287
+ //=> [ 'a/b{1,3}/x', 'a/b{1,3}/y', 'a/b{1,3}/z' ]
288
+ ```
289
+
290
+ ### options.unescape
291
+
292
+ **Type**: `Boolean`
293
+
294
+ **Default**: `undefined`
295
+
296
+ **Description**: Strip backslashes that were used for escaping from the result.
297
+
298
+ ## What is "brace expansion"?
299
+
300
+ Brace expansion is a type of parameter expansion that was made popular by unix shells for generating lists of strings, as well as regex-like matching when used alongside wildcards (globs).
301
+
302
+ In addition to "expansion", braces are also used for matching. In other words:
303
+
304
+ * [brace expansion](#brace-expansion) is for generating new lists
305
+ * [brace matching](#brace-matching) is for filtering existing lists
306
+
307
+ <details>
308
+ <summary><strong>More about brace expansion</strong> (click to expand)</summary>
309
+
310
+ There are two main types of brace expansion:
311
+
312
+ 1. **lists**: which are defined using comma-separated values inside curly braces: `{a,b,c}`
313
+ 2. **sequences**: which are defined using a starting value and an ending value, separated by two dots: `a{1..3}b`. Optionally, a third argument may be passed to define a "step" or increment to use: `a{1..100..10}b`. These are also sometimes referred to as "ranges".
314
+
315
+ Here are some example brace patterns to illustrate how they work:
316
+
317
+ **Sets**
318
+
319
+ ```
320
+ {a,b,c} => a b c
321
+ {a,b,c}{1,2} => a1 a2 b1 b2 c1 c2
322
+ ```
323
+
324
+ **Sequences**
325
+
326
+ ```
327
+ {1..9} => 1 2 3 4 5 6 7 8 9
328
+ {4..-4} => 4 3 2 1 0 -1 -2 -3 -4
329
+ {1..20..3} => 1 4 7 10 13 16 19
330
+ {a..j} => a b c d e f g h i j
331
+ {j..a} => j i h g f e d c b a
332
+ {a..z..3} => a d g j m p s v y
333
+ ```
334
+
335
+ **Combination**
336
+
337
+ Sets and sequences can be mixed together or used along with any other strings.
338
+
339
+ ```
340
+ {a,b,c}{1..3} => a1 a2 a3 b1 b2 b3 c1 c2 c3
341
+ foo/{a,b,c}/bar => foo/a/bar foo/b/bar foo/c/bar
342
+ ```
343
+
344
+ The fact that braces can be "expanded" from relatively simple patterns makes them ideal for quickly generating test fixtures, file paths, and similar use cases.
345
+
346
+ ## Brace matching
347
+
348
+ In addition to _expansion_, brace patterns are also useful for performing regular-expression-like matching.
349
+
350
+ For example, the pattern `foo/{1..3}/bar` would match any of following strings:
351
+
352
+ ```
353
+ foo/1/bar
354
+ foo/2/bar
355
+ foo/3/bar
356
+ ```
357
+
358
+ But not:
359
+
360
+ ```
361
+ baz/1/qux
362
+ baz/2/qux
363
+ baz/3/qux
364
+ ```
365
+
366
+ Braces can also be combined with [glob patterns](https://github.com/jonschlinkert/micromatch) to perform more advanced wildcard matching. For example, the pattern `*/{1..3}/*` would match any of following strings:
367
+
368
+ ```
369
+ foo/1/bar
370
+ foo/2/bar
371
+ foo/3/bar
372
+ baz/1/qux
373
+ baz/2/qux
374
+ baz/3/qux
375
+ ```
376
+
377
+ ## Brace matching pitfalls
378
+
379
+ Although brace patterns offer a user-friendly way of matching ranges or sets of strings, there are also some major disadvantages and potential risks you should be aware of.
380
+
381
+ ### tldr
382
+
383
+ **"brace bombs"**
384
+
385
+ * brace expansion can eat up a huge amount of processing resources
386
+ * as brace patterns increase _linearly in size_, the system resources required to expand the pattern increase exponentially
387
+ * users can accidentally (or intentially) exhaust your system's resources resulting in the equivalent of a DoS attack (bonus: no programming knowledge is required!)
388
+
389
+ For a more detailed explanation with examples, see the [geometric complexity](#geometric-complexity) section.
390
+
391
+ ### The solution
392
+
393
+ Jump to the [performance section](#performance) to see how Braces solves this problem in comparison to other libraries.
394
+
395
+ ### Geometric complexity
396
+
397
+ At minimum, brace patterns with sets limited to two elements have quadradic or `O(n^2)` complexity. But the complexity of the algorithm increases exponentially as the number of sets, _and elements per set_, increases, which is `O(n^c)`.
398
+
399
+ For example, the following sets demonstrate quadratic (`O(n^2)`) complexity:
400
+
401
+ ```
402
+ {1,2}{3,4} => (2X2) => 13 14 23 24
403
+ {1,2}{3,4}{5,6} => (2X2X2) => 135 136 145 146 235 236 245 246
404
+ ```
405
+
406
+ But add an element to a set, and we get a n-fold Cartesian product with `O(n^c)` complexity:
407
+
408
+ ```
409
+ {1,2,3}{4,5,6}{7,8,9} => (3X3X3) => 147 148 149 157 158 159 167 168 169 247 248
410
+ 249 257 258 259 267 268 269 347 348 349 357
411
+ 358 359 367 368 369
412
+ ```
413
+
414
+ Now, imagine how this complexity grows given that each element is a n-tuple:
415
+
416
+ ```
417
+ {1..100}{1..100} => (100X100) => 10,000 elements (38.4 kB)
418
+ {1..100}{1..100}{1..100} => (100X100X100) => 1,000,000 elements (5.76 MB)
419
+ ```
420
+
421
+ Although these examples are clearly contrived, they demonstrate how brace patterns can quickly grow out of control.
422
+
423
+ **More information**
424
+
425
+ Interested in learning more about brace expansion?
426
+
427
+ * [linuxjournal/bash-brace-expansion](http://www.linuxjournal.com/content/bash-brace-expansion)
428
+ * [rosettacode/Brace_expansion](https://rosettacode.org/wiki/Brace_expansion)
429
+ * [cartesian product](https://en.wikipedia.org/wiki/Cartesian_product)
430
+
431
+ </details>
432
+
433
+ ## Performance
434
+
435
+ Braces is not only screaming fast, it's also more accurate the other brace expansion libraries.
436
+
437
+ ### Better algorithms
438
+
439
+ Fortunately there is a solution to the ["brace bomb" problem](#brace-matching-pitfalls): _don't expand brace patterns into an array when they're used for matching_.
440
+
441
+ Instead, convert the pattern into an optimized regular expression. This is easier said than done, and braces is the only library that does this currently.
442
+
443
+ **The proof is in the numbers**
444
+
445
+ Minimatch gets exponentially slower as patterns increase in complexity, braces does not. The following results were generated using `braces()` and `minimatch.braceExpand()`, respectively.
446
+
447
+ | **Pattern** | **braces** | **[minimatch][]** |
448
+ | --- | --- | --- |
449
+ | `{1..9007199254740991}`[^1] | `298 B` (5ms 459μs)| N/A (freezes) |
450
+ | `{1..1000000000000000}` | `41 B` (1ms 15μs) | N/A (freezes) |
451
+ | `{1..100000000000000}` | `40 B` (890μs) | N/A (freezes) |
452
+ | `{1..10000000000000}` | `39 B` (2ms 49μs) | N/A (freezes) |
453
+ | `{1..1000000000000}` | `38 B` (608μs) | N/A (freezes) |
454
+ | `{1..100000000000}` | `37 B` (397μs) | N/A (freezes) |
455
+ | `{1..10000000000}` | `35 B` (983μs) | N/A (freezes) |
456
+ | `{1..1000000000}` | `34 B` (798μs) | N/A (freezes) |
457
+ | `{1..100000000}` | `33 B` (733μs) | N/A (freezes) |
458
+ | `{1..10000000}` | `32 B` (5ms 632μs) | `78.89 MB` (16s 388ms 569μs) |
459
+ | `{1..1000000}` | `31 B` (1ms 381μs) | `6.89 MB` (1s 496ms 887μs) |
460
+ | `{1..100000}` | `30 B` (950μs) | `588.89 kB` (146ms 921μs) |
461
+ | `{1..10000}` | `29 B` (1ms 114μs) | `48.89 kB` (14ms 187μs) |
462
+ | `{1..1000}` | `28 B` (760μs) | `3.89 kB` (1ms 453μs) |
463
+ | `{1..100}` | `22 B` (345μs) | `291 B` (196μs) |
464
+ | `{1..10}` | `10 B` (533μs) | `20 B` (37μs) |
465
+ | `{1..3}` | `7 B` (190μs) | `5 B` (27μs) |
466
+
467
+ ### Faster algorithms
468
+
469
+ When you need expansion, braces is still much faster.
470
+
471
+ _(the following results were generated using `braces.expand()` and `minimatch.braceExpand()`, respectively)_
472
+
473
+ | **Pattern** | **braces** | **[minimatch][]** |
474
+ | --- | --- | --- |
475
+ | `{1..10000000}` | `78.89 MB` (2s 698ms 642μs) | `78.89 MB` (18s 601ms 974μs) |
476
+ | `{1..1000000}` | `6.89 MB` (458ms 576μs) | `6.89 MB` (1s 491ms 621μs) |
477
+ | `{1..100000}` | `588.89 kB` (20ms 728μs) | `588.89 kB` (156ms 919μs) |
478
+ | `{1..10000}` | `48.89 kB` (2ms 202μs) | `48.89 kB` (13ms 641μs) |
479
+ | `{1..1000}` | `3.89 kB` (1ms 796μs) | `3.89 kB` (1ms 958μs) |
480
+ | `{1..100}` | `291 B` (424μs) | `291 B` (211μs) |
481
+ | `{1..10}` | `20 B` (487μs) | `20 B` (72μs) |
482
+ | `{1..3}` | `5 B` (166μs) | `5 B` (27μs) |
483
+
484
+ If you'd like to run these comparisons yourself, see [test/support/generate.js](test/support/generate.js).
485
+
486
+ ## Benchmarks
487
+
488
+ ### Running benchmarks
489
+
490
+ Install dev dependencies:
491
+
492
+ ```bash
493
+ npm i -d && npm benchmark
494
+ ```
495
+
496
+ ### Latest results
497
+
498
+ Braces is more accurate, without sacrificing performance.
499
+
500
+ ```bash
501
+ # range (expanded)
502
+ braces x 29,040 ops/sec ±3.69% (91 runs sampled))
503
+ minimatch x 4,735 ops/sec ±1.28% (90 runs sampled)
504
+
505
+ # range (optimized for regex)
506
+ braces x 382,878 ops/sec ±0.56% (94 runs sampled)
507
+ minimatch x 1,040 ops/sec ±0.44% (93 runs sampled)
508
+
509
+ # nested ranges (expanded)
510
+ braces x 19,744 ops/sec ±2.27% (92 runs sampled))
511
+ minimatch x 4,579 ops/sec ±0.50% (93 runs sampled)
512
+
513
+ # nested ranges (optimized for regex)
514
+ braces x 246,019 ops/sec ±2.02% (93 runs sampled)
515
+ minimatch x 1,028 ops/sec ±0.39% (94 runs sampled)
516
+
517
+ # set (expanded)
518
+ braces x 138,641 ops/sec ±0.53% (95 runs sampled)
519
+ minimatch x 219,582 ops/sec ±0.98% (94 runs sampled)
520
+
521
+ # set (optimized for regex)
522
+ braces x 388,408 ops/sec ±0.41% (95 runs sampled)
523
+ minimatch x 44,724 ops/sec ±0.91% (89 runs sampled)
524
+
525
+ # nested sets (expanded)
526
+ braces x 84,966 ops/sec ±0.48% (94 runs sampled)
527
+ minimatch x 140,720 ops/sec ±0.37% (95 runs sampled)
528
+
529
+ # nested sets (optimized for regex)
530
+ braces x 263,340 ops/sec ±2.06% (92 runs sampled)
531
+ minimatch x 28,714 ops/sec ±0.40% (90 runs sampled)
532
+ ```
533
+
534
+ ## About
535
+
536
+ <details>
537
+ <summary><strong>Contributing</strong></summary>
538
+
539
+ Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
540
+
541
+ </details>
542
+
543
+ <details>
544
+ <summary><strong>Running Tests</strong></summary>
545
+
546
+ Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
547
+
548
+ ```sh
549
+ $ npm install && npm test
550
+ ```
551
+
552
+ </details>
553
+
554
+ <details>
555
+ <summary><strong>Building docs</strong></summary>
556
+
557
+ _(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
558
+
559
+ To generate the readme, run the following command:
560
+
561
+ ```sh
562
+ $ npm install -g verbose/verb#dev verb-generate-readme && verb
563
+ ```
564
+
565
+ </details>
566
+
567
+ ### Contributors
568
+
569
+ | **Commits** | **Contributor** |
570
+ | --- | --- |
571
+ | 197 | [jonschlinkert](https://github.com/jonschlinkert) |
572
+ | 4 | [doowb](https://github.com/doowb) |
573
+ | 1 | [es128](https://github.com/es128) |
574
+ | 1 | [eush77](https://github.com/eush77) |
575
+ | 1 | [hemanth](https://github.com/hemanth) |
576
+ | 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) |
577
+
578
+ ### Author
579
+
580
+ **Jon Schlinkert**
581
+
582
+ * [GitHub Profile](https://github.com/jonschlinkert)
583
+ * [Twitter Profile](https://twitter.com/jonschlinkert)
584
+ * [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
585
+
586
+ ### License
587
+
588
+ Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert).
589
+ Released under the [MIT License](LICENSE).
590
+
591
+ ***
592
+
593
+ _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 08, 2019._
node_modules/braces/index.js ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ const stringify = require('./lib/stringify');
4
+ const compile = require('./lib/compile');
5
+ const expand = require('./lib/expand');
6
+ const parse = require('./lib/parse');
7
+
8
+ /**
9
+ * Expand the given pattern or create a regex-compatible string.
10
+ *
11
+ * ```js
12
+ * const braces = require('braces');
13
+ * console.log(braces('{a,b,c}', { compile: true })); //=> ['(a|b|c)']
14
+ * console.log(braces('{a,b,c}')); //=> ['a', 'b', 'c']
15
+ * ```
16
+ * @param {String} `str`
17
+ * @param {Object} `options`
18
+ * @return {String}
19
+ * @api public
20
+ */
21
+
22
+ const braces = (input, options = {}) => {
23
+ let output = [];
24
+
25
+ if (Array.isArray(input)) {
26
+ for (let pattern of input) {
27
+ let result = braces.create(pattern, options);
28
+ if (Array.isArray(result)) {
29
+ output.push(...result);
30
+ } else {
31
+ output.push(result);
32
+ }
33
+ }
34
+ } else {
35
+ output = [].concat(braces.create(input, options));
36
+ }
37
+
38
+ if (options && options.expand === true && options.nodupes === true) {
39
+ output = [...new Set(output)];
40
+ }
41
+ return output;
42
+ };
43
+
44
+ /**
45
+ * Parse the given `str` with the given `options`.
46
+ *
47
+ * ```js
48
+ * // braces.parse(pattern, [, options]);
49
+ * const ast = braces.parse('a/{b,c}/d');
50
+ * console.log(ast);
51
+ * ```
52
+ * @param {String} pattern Brace pattern to parse
53
+ * @param {Object} options
54
+ * @return {Object} Returns an AST
55
+ * @api public
56
+ */
57
+
58
+ braces.parse = (input, options = {}) => parse(input, options);
59
+
60
+ /**
61
+ * Creates a braces string from an AST, or an AST node.
62
+ *
63
+ * ```js
64
+ * const braces = require('braces');
65
+ * let ast = braces.parse('foo/{a,b}/bar');
66
+ * console.log(stringify(ast.nodes[2])); //=> '{a,b}'
67
+ * ```
68
+ * @param {String} `input` Brace pattern or AST.
69
+ * @param {Object} `options`
70
+ * @return {Array} Returns an array of expanded values.
71
+ * @api public
72
+ */
73
+
74
+ braces.stringify = (input, options = {}) => {
75
+ if (typeof input === 'string') {
76
+ return stringify(braces.parse(input, options), options);
77
+ }
78
+ return stringify(input, options);
79
+ };
80
+
81
+ /**
82
+ * Compiles a brace pattern into a regex-compatible, optimized string.
83
+ * This method is called by the main [braces](#braces) function by default.
84
+ *
85
+ * ```js
86
+ * const braces = require('braces');
87
+ * console.log(braces.compile('a/{b,c}/d'));
88
+ * //=> ['a/(b|c)/d']
89
+ * ```
90
+ * @param {String} `input` Brace pattern or AST.
91
+ * @param {Object} `options`
92
+ * @return {Array} Returns an array of expanded values.
93
+ * @api public
94
+ */
95
+
96
+ braces.compile = (input, options = {}) => {
97
+ if (typeof input === 'string') {
98
+ input = braces.parse(input, options);
99
+ }
100
+ return compile(input, options);
101
+ };
102
+
103
+ /**
104
+ * Expands a brace pattern into an array. This method is called by the
105
+ * main [braces](#braces) function when `options.expand` is true. Before
106
+ * using this method it's recommended that you read the [performance notes](#performance))
107
+ * and advantages of using [.compile](#compile) instead.
108
+ *
109
+ * ```js
110
+ * const braces = require('braces');
111
+ * console.log(braces.expand('a/{b,c}/d'));
112
+ * //=> ['a/b/d', 'a/c/d'];
113
+ * ```
114
+ * @param {String} `pattern` Brace pattern
115
+ * @param {Object} `options`
116
+ * @return {Array} Returns an array of expanded values.
117
+ * @api public
118
+ */
119
+
120
+ braces.expand = (input, options = {}) => {
121
+ if (typeof input === 'string') {
122
+ input = braces.parse(input, options);
123
+ }
124
+
125
+ let result = expand(input, options);
126
+
127
+ // filter out empty strings if specified
128
+ if (options.noempty === true) {
129
+ result = result.filter(Boolean);
130
+ }
131
+
132
+ // filter out duplicates if specified
133
+ if (options.nodupes === true) {
134
+ result = [...new Set(result)];
135
+ }
136
+
137
+ return result;
138
+ };
139
+
140
+ /**
141
+ * Processes a brace pattern and returns either an expanded array
142
+ * (if `options.expand` is true), a highly optimized regex-compatible string.
143
+ * This method is called by the main [braces](#braces) function.
144
+ *
145
+ * ```js
146
+ * const braces = require('braces');
147
+ * console.log(braces.create('user-{200..300}/project-{a,b,c}-{1..10}'))
148
+ * //=> 'user-(20[0-9]|2[1-9][0-9]|300)/project-(a|b|c)-([1-9]|10)'
149
+ * ```
150
+ * @param {String} `pattern` Brace pattern
151
+ * @param {Object} `options`
152
+ * @return {Array} Returns an array of expanded values.
153
+ * @api public
154
+ */
155
+
156
+ braces.create = (input, options = {}) => {
157
+ if (input === '' || input.length < 3) {
158
+ return [input];
159
+ }
160
+
161
+ return options.expand !== true
162
+ ? braces.compile(input, options)
163
+ : braces.expand(input, options);
164
+ };
165
+
166
+ /**
167
+ * Expose "braces"
168
+ */
169
+
170
+ module.exports = braces;
node_modules/braces/lib/compile.js ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ const fill = require('fill-range');
4
+ const utils = require('./utils');
5
+
6
+ const compile = (ast, options = {}) => {
7
+ let walk = (node, parent = {}) => {
8
+ let invalidBlock = utils.isInvalidBrace(parent);
9
+ let invalidNode = node.invalid === true && options.escapeInvalid === true;
10
+ let invalid = invalidBlock === true || invalidNode === true;
11
+ let prefix = options.escapeInvalid === true ? '\\' : '';
12
+ let output = '';
13
+
14
+ if (node.isOpen === true) {
15
+ return prefix + node.value;
16
+ }
17
+ if (node.isClose === true) {
18
+ return prefix + node.value;
19
+ }
20
+
21
+ if (node.type === 'open') {
22
+ return invalid ? (prefix + node.value) : '(';
23
+ }
24
+
25
+ if (node.type === 'close') {
26
+ return invalid ? (prefix + node.value) : ')';
27
+ }
28
+
29
+ if (node.type === 'comma') {
30
+ return node.prev.type === 'comma' ? '' : (invalid ? node.value : '|');
31
+ }
32
+
33
+ if (node.value) {
34
+ return node.value;
35
+ }
36
+
37
+ if (node.nodes && node.ranges > 0) {
38
+ let args = utils.reduce(node.nodes);
39
+ let range = fill(...args, { ...options, wrap: false, toRegex: true });
40
+
41
+ if (range.length !== 0) {
42
+ return args.length > 1 && range.length > 1 ? `(${range})` : range;
43
+ }
44
+ }
45
+
46
+ if (node.nodes) {
47
+ for (let child of node.nodes) {
48
+ output += walk(child, node);
49
+ }
50
+ }
51
+ return output;
52
+ };
53
+
54
+ return walk(ast);
55
+ };
56
+
57
+ module.exports = compile;
node_modules/braces/lib/constants.js ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ MAX_LENGTH: 1024 * 64,
5
+
6
+ // Digits
7
+ CHAR_0: '0', /* 0 */
8
+ CHAR_9: '9', /* 9 */
9
+
10
+ // Alphabet chars.
11
+ CHAR_UPPERCASE_A: 'A', /* A */
12
+ CHAR_LOWERCASE_A: 'a', /* a */
13
+ CHAR_UPPERCASE_Z: 'Z', /* Z */
14
+ CHAR_LOWERCASE_Z: 'z', /* z */
15
+
16
+ CHAR_LEFT_PARENTHESES: '(', /* ( */
17
+ CHAR_RIGHT_PARENTHESES: ')', /* ) */
18
+
19
+ CHAR_ASTERISK: '*', /* * */
20
+
21
+ // Non-alphabetic chars.
22
+ CHAR_AMPERSAND: '&', /* & */
23
+ CHAR_AT: '@', /* @ */
24
+ CHAR_BACKSLASH: '\\', /* \ */
25
+ CHAR_BACKTICK: '`', /* ` */
26
+ CHAR_CARRIAGE_RETURN: '\r', /* \r */
27
+ CHAR_CIRCUMFLEX_ACCENT: '^', /* ^ */
28
+ CHAR_COLON: ':', /* : */
29
+ CHAR_COMMA: ',', /* , */
30
+ CHAR_DOLLAR: '$', /* . */
31
+ CHAR_DOT: '.', /* . */
32
+ CHAR_DOUBLE_QUOTE: '"', /* " */
33
+ CHAR_EQUAL: '=', /* = */
34
+ CHAR_EXCLAMATION_MARK: '!', /* ! */
35
+ CHAR_FORM_FEED: '\f', /* \f */
36
+ CHAR_FORWARD_SLASH: '/', /* / */
37
+ CHAR_HASH: '#', /* # */
38
+ CHAR_HYPHEN_MINUS: '-', /* - */
39
+ CHAR_LEFT_ANGLE_BRACKET: '<', /* < */
40
+ CHAR_LEFT_CURLY_BRACE: '{', /* { */
41
+ CHAR_LEFT_SQUARE_BRACKET: '[', /* [ */
42
+ CHAR_LINE_FEED: '\n', /* \n */
43
+ CHAR_NO_BREAK_SPACE: '\u00A0', /* \u00A0 */
44
+ CHAR_PERCENT: '%', /* % */
45
+ CHAR_PLUS: '+', /* + */
46
+ CHAR_QUESTION_MARK: '?', /* ? */
47
+ CHAR_RIGHT_ANGLE_BRACKET: '>', /* > */
48
+ CHAR_RIGHT_CURLY_BRACE: '}', /* } */
49
+ CHAR_RIGHT_SQUARE_BRACKET: ']', /* ] */
50
+ CHAR_SEMICOLON: ';', /* ; */
51
+ CHAR_SINGLE_QUOTE: '\'', /* ' */
52
+ CHAR_SPACE: ' ', /* */
53
+ CHAR_TAB: '\t', /* \t */
54
+ CHAR_UNDERSCORE: '_', /* _ */
55
+ CHAR_VERTICAL_LINE: '|', /* | */
56
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE: '\uFEFF' /* \uFEFF */
57
+ };
node_modules/braces/lib/expand.js ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ const fill = require('fill-range');
4
+ const stringify = require('./stringify');
5
+ const utils = require('./utils');
6
+
7
+ const append = (queue = '', stash = '', enclose = false) => {
8
+ let result = [];
9
+
10
+ queue = [].concat(queue);
11
+ stash = [].concat(stash);
12
+
13
+ if (!stash.length) return queue;
14
+ if (!queue.length) {
15
+ return enclose ? utils.flatten(stash).map(ele => `{${ele}}`) : stash;
16
+ }
17
+
18
+ for (let item of queue) {
19
+ if (Array.isArray(item)) {
20
+ for (let value of item) {
21
+ result.push(append(value, stash, enclose));
22
+ }
23
+ } else {
24
+ for (let ele of stash) {
25
+ if (enclose === true && typeof ele === 'string') ele = `{${ele}}`;
26
+ result.push(Array.isArray(ele) ? append(item, ele, enclose) : (item + ele));
27
+ }
28
+ }
29
+ }
30
+ return utils.flatten(result);
31
+ };
32
+
33
+ const expand = (ast, options = {}) => {
34
+ let rangeLimit = options.rangeLimit === void 0 ? 1000 : options.rangeLimit;
35
+
36
+ let walk = (node, parent = {}) => {
37
+ node.queue = [];
38
+
39
+ let p = parent;
40
+ let q = parent.queue;
41
+
42
+ while (p.type !== 'brace' && p.type !== 'root' && p.parent) {
43
+ p = p.parent;
44
+ q = p.queue;
45
+ }
46
+
47
+ if (node.invalid || node.dollar) {
48
+ q.push(append(q.pop(), stringify(node, options)));
49
+ return;
50
+ }
51
+
52
+ if (node.type === 'brace' && node.invalid !== true && node.nodes.length === 2) {
53
+ q.push(append(q.pop(), ['{}']));
54
+ return;
55
+ }
56
+
57
+ if (node.nodes && node.ranges > 0) {
58
+ let args = utils.reduce(node.nodes);
59
+
60
+ if (utils.exceedsLimit(...args, options.step, rangeLimit)) {
61
+ throw new RangeError('expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.');
62
+ }
63
+
64
+ let range = fill(...args, options);
65
+ if (range.length === 0) {
66
+ range = stringify(node, options);
67
+ }
68
+
69
+ q.push(append(q.pop(), range));
70
+ node.nodes = [];
71
+ return;
72
+ }
73
+
74
+ let enclose = utils.encloseBrace(node);
75
+ let queue = node.queue;
76
+ let block = node;
77
+
78
+ while (block.type !== 'brace' && block.type !== 'root' && block.parent) {
79
+ block = block.parent;
80
+ queue = block.queue;
81
+ }
82
+
83
+ for (let i = 0; i < node.nodes.length; i++) {
84
+ let child = node.nodes[i];
85
+
86
+ if (child.type === 'comma' && node.type === 'brace') {
87
+ if (i === 1) queue.push('');
88
+ queue.push('');
89
+ continue;
90
+ }
91
+
92
+ if (child.type === 'close') {
93
+ q.push(append(q.pop(), queue, enclose));
94
+ continue;
95
+ }
96
+
97
+ if (child.value && child.type !== 'open') {
98
+ queue.push(append(queue.pop(), child.value));
99
+ continue;
100
+ }
101
+
102
+ if (child.nodes) {
103
+ walk(child, node);
104
+ }
105
+ }
106
+
107
+ return queue;
108
+ };
109
+
110
+ return utils.flatten(walk(ast));
111
+ };
112
+
113
+ module.exports = expand;
node_modules/braces/lib/parse.js ADDED
@@ -0,0 +1,333 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ const stringify = require('./stringify');
4
+
5
+ /**
6
+ * Constants
7
+ */
8
+
9
+ const {
10
+ MAX_LENGTH,
11
+ CHAR_BACKSLASH, /* \ */
12
+ CHAR_BACKTICK, /* ` */
13
+ CHAR_COMMA, /* , */
14
+ CHAR_DOT, /* . */
15
+ CHAR_LEFT_PARENTHESES, /* ( */
16
+ CHAR_RIGHT_PARENTHESES, /* ) */
17
+ CHAR_LEFT_CURLY_BRACE, /* { */
18
+ CHAR_RIGHT_CURLY_BRACE, /* } */
19
+ CHAR_LEFT_SQUARE_BRACKET, /* [ */
20
+ CHAR_RIGHT_SQUARE_BRACKET, /* ] */
21
+ CHAR_DOUBLE_QUOTE, /* " */
22
+ CHAR_SINGLE_QUOTE, /* ' */
23
+ CHAR_NO_BREAK_SPACE,
24
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE
25
+ } = require('./constants');
26
+
27
+ /**
28
+ * parse
29
+ */
30
+
31
+ const parse = (input, options = {}) => {
32
+ if (typeof input !== 'string') {
33
+ throw new TypeError('Expected a string');
34
+ }
35
+
36
+ let opts = options || {};
37
+ let max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
38
+ if (input.length > max) {
39
+ throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
40
+ }
41
+
42
+ let ast = { type: 'root', input, nodes: [] };
43
+ let stack = [ast];
44
+ let block = ast;
45
+ let prev = ast;
46
+ let brackets = 0;
47
+ let length = input.length;
48
+ let index = 0;
49
+ let depth = 0;
50
+ let value;
51
+ let memo = {};
52
+
53
+ /**
54
+ * Helpers
55
+ */
56
+
57
+ const advance = () => input[index++];
58
+ const push = node => {
59
+ if (node.type === 'text' && prev.type === 'dot') {
60
+ prev.type = 'text';
61
+ }
62
+
63
+ if (prev && prev.type === 'text' && node.type === 'text') {
64
+ prev.value += node.value;
65
+ return;
66
+ }
67
+
68
+ block.nodes.push(node);
69
+ node.parent = block;
70
+ node.prev = prev;
71
+ prev = node;
72
+ return node;
73
+ };
74
+
75
+ push({ type: 'bos' });
76
+
77
+ while (index < length) {
78
+ block = stack[stack.length - 1];
79
+ value = advance();
80
+
81
+ /**
82
+ * Invalid chars
83
+ */
84
+
85
+ if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) {
86
+ continue;
87
+ }
88
+
89
+ /**
90
+ * Escaped chars
91
+ */
92
+
93
+ if (value === CHAR_BACKSLASH) {
94
+ push({ type: 'text', value: (options.keepEscaping ? value : '') + advance() });
95
+ continue;
96
+ }
97
+
98
+ /**
99
+ * Right square bracket (literal): ']'
100
+ */
101
+
102
+ if (value === CHAR_RIGHT_SQUARE_BRACKET) {
103
+ push({ type: 'text', value: '\\' + value });
104
+ continue;
105
+ }
106
+
107
+ /**
108
+ * Left square bracket: '['
109
+ */
110
+
111
+ if (value === CHAR_LEFT_SQUARE_BRACKET) {
112
+ brackets++;
113
+
114
+ let closed = true;
115
+ let next;
116
+
117
+ while (index < length && (next = advance())) {
118
+ value += next;
119
+
120
+ if (next === CHAR_LEFT_SQUARE_BRACKET) {
121
+ brackets++;
122
+ continue;
123
+ }
124
+
125
+ if (next === CHAR_BACKSLASH) {
126
+ value += advance();
127
+ continue;
128
+ }
129
+
130
+ if (next === CHAR_RIGHT_SQUARE_BRACKET) {
131
+ brackets--;
132
+
133
+ if (brackets === 0) {
134
+ break;
135
+ }
136
+ }
137
+ }
138
+
139
+ push({ type: 'text', value });
140
+ continue;
141
+ }
142
+
143
+ /**
144
+ * Parentheses
145
+ */
146
+
147
+ if (value === CHAR_LEFT_PARENTHESES) {
148
+ block = push({ type: 'paren', nodes: [] });
149
+ stack.push(block);
150
+ push({ type: 'text', value });
151
+ continue;
152
+ }
153
+
154
+ if (value === CHAR_RIGHT_PARENTHESES) {
155
+ if (block.type !== 'paren') {
156
+ push({ type: 'text', value });
157
+ continue;
158
+ }
159
+ block = stack.pop();
160
+ push({ type: 'text', value });
161
+ block = stack[stack.length - 1];
162
+ continue;
163
+ }
164
+
165
+ /**
166
+ * Quotes: '|"|`
167
+ */
168
+
169
+ if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
170
+ let open = value;
171
+ let next;
172
+
173
+ if (options.keepQuotes !== true) {
174
+ value = '';
175
+ }
176
+
177
+ while (index < length && (next = advance())) {
178
+ if (next === CHAR_BACKSLASH) {
179
+ value += next + advance();
180
+ continue;
181
+ }
182
+
183
+ if (next === open) {
184
+ if (options.keepQuotes === true) value += next;
185
+ break;
186
+ }
187
+
188
+ value += next;
189
+ }
190
+
191
+ push({ type: 'text', value });
192
+ continue;
193
+ }
194
+
195
+ /**
196
+ * Left curly brace: '{'
197
+ */
198
+
199
+ if (value === CHAR_LEFT_CURLY_BRACE) {
200
+ depth++;
201
+
202
+ let dollar = prev.value && prev.value.slice(-1) === '$' || block.dollar === true;
203
+ let brace = {
204
+ type: 'brace',
205
+ open: true,
206
+ close: false,
207
+ dollar,
208
+ depth,
209
+ commas: 0,
210
+ ranges: 0,
211
+ nodes: []
212
+ };
213
+
214
+ block = push(brace);
215
+ stack.push(block);
216
+ push({ type: 'open', value });
217
+ continue;
218
+ }
219
+
220
+ /**
221
+ * Right curly brace: '}'
222
+ */
223
+
224
+ if (value === CHAR_RIGHT_CURLY_BRACE) {
225
+ if (block.type !== 'brace') {
226
+ push({ type: 'text', value });
227
+ continue;
228
+ }
229
+
230
+ let type = 'close';
231
+ block = stack.pop();
232
+ block.close = true;
233
+
234
+ push({ type, value });
235
+ depth--;
236
+
237
+ block = stack[stack.length - 1];
238
+ continue;
239
+ }
240
+
241
+ /**
242
+ * Comma: ','
243
+ */
244
+
245
+ if (value === CHAR_COMMA && depth > 0) {
246
+ if (block.ranges > 0) {
247
+ block.ranges = 0;
248
+ let open = block.nodes.shift();
249
+ block.nodes = [open, { type: 'text', value: stringify(block) }];
250
+ }
251
+
252
+ push({ type: 'comma', value });
253
+ block.commas++;
254
+ continue;
255
+ }
256
+
257
+ /**
258
+ * Dot: '.'
259
+ */
260
+
261
+ if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
262
+ let siblings = block.nodes;
263
+
264
+ if (depth === 0 || siblings.length === 0) {
265
+ push({ type: 'text', value });
266
+ continue;
267
+ }
268
+
269
+ if (prev.type === 'dot') {
270
+ block.range = [];
271
+ prev.value += value;
272
+ prev.type = 'range';
273
+
274
+ if (block.nodes.length !== 3 && block.nodes.length !== 5) {
275
+ block.invalid = true;
276
+ block.ranges = 0;
277
+ prev.type = 'text';
278
+ continue;
279
+ }
280
+
281
+ block.ranges++;
282
+ block.args = [];
283
+ continue;
284
+ }
285
+
286
+ if (prev.type === 'range') {
287
+ siblings.pop();
288
+
289
+ let before = siblings[siblings.length - 1];
290
+ before.value += prev.value + value;
291
+ prev = before;
292
+ block.ranges--;
293
+ continue;
294
+ }
295
+
296
+ push({ type: 'dot', value });
297
+ continue;
298
+ }
299
+
300
+ /**
301
+ * Text
302
+ */
303
+
304
+ push({ type: 'text', value });
305
+ }
306
+
307
+ // Mark imbalanced braces and brackets as invalid
308
+ do {
309
+ block = stack.pop();
310
+
311
+ if (block.type !== 'root') {
312
+ block.nodes.forEach(node => {
313
+ if (!node.nodes) {
314
+ if (node.type === 'open') node.isOpen = true;
315
+ if (node.type === 'close') node.isClose = true;
316
+ if (!node.nodes) node.type = 'text';
317
+ node.invalid = true;
318
+ }
319
+ });
320
+
321
+ // get the location of the block on parent.nodes (block's siblings)
322
+ let parent = stack[stack.length - 1];
323
+ let index = parent.nodes.indexOf(block);
324
+ // replace the (invalid) block with it's nodes
325
+ parent.nodes.splice(index, 1, ...block.nodes);
326
+ }
327
+ } while (stack.length > 0);
328
+
329
+ push({ type: 'eos' });
330
+ return ast;
331
+ };
332
+
333
+ module.exports = parse;
node_modules/braces/lib/stringify.js ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ const utils = require('./utils');
4
+
5
+ module.exports = (ast, options = {}) => {
6
+ let stringify = (node, parent = {}) => {
7
+ let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
8
+ let invalidNode = node.invalid === true && options.escapeInvalid === true;
9
+ let output = '';
10
+
11
+ if (node.value) {
12
+ if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) {
13
+ return '\\' + node.value;
14
+ }
15
+ return node.value;
16
+ }
17
+
18
+ if (node.value) {
19
+ return node.value;
20
+ }
21
+
22
+ if (node.nodes) {
23
+ for (let child of node.nodes) {
24
+ output += stringify(child);
25
+ }
26
+ }
27
+ return output;
28
+ };
29
+
30
+ return stringify(ast);
31
+ };
32
+
node_modules/braces/lib/utils.js ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 'use strict';
2
+
3
+ exports.isInteger = num => {
4
+ if (typeof num === 'number') {
5
+ return Number.isInteger(num);
6
+ }
7
+ if (typeof num === 'string' && num.trim() !== '') {
8
+ return Number.isInteger(Number(num));
9
+ }
10
+ return false;
11
+ };
12
+
13
+ /**
14
+ * Find a node of the given type
15
+ */
16
+
17
+ exports.find = (node, type) => node.nodes.find(node => node.type === type);
18
+
19
+ /**
20
+ * Find a node of the given type
21
+ */
22
+
23
+ exports.exceedsLimit = (min, max, step = 1, limit) => {
24
+ if (limit === false) return false;
25
+ if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
26
+ return ((Number(max) - Number(min)) / Number(step)) >= limit;
27
+ };
28
+
29
+ /**
30
+ * Escape the given node with '\\' before node.value
31
+ */
32
+
33
+ exports.escapeNode = (block, n = 0, type) => {
34
+ let node = block.nodes[n];
35
+ if (!node) return;
36
+
37
+ if ((type && node.type === type) || node.type === 'open' || node.type === 'close') {
38
+ if (node.escaped !== true) {
39
+ node.value = '\\' + node.value;
40
+ node.escaped = true;
41
+ }
42
+ }
43
+ };
44
+
45
+ /**
46
+ * Returns true if the given brace node should be enclosed in literal braces
47
+ */
48
+
49
+ exports.encloseBrace = node => {
50
+ if (node.type !== 'brace') return false;
51
+ if ((node.commas >> 0 + node.ranges >> 0) === 0) {
52
+ node.invalid = true;
53
+ return true;
54
+ }
55
+ return false;
56
+ };
57
+
58
+ /**
59
+ * Returns true if a brace node is invalid.
60
+ */
61
+
62
+ exports.isInvalidBrace = block => {
63
+ if (block.type !== 'brace') return false;
64
+ if (block.invalid === true || block.dollar) return true;
65
+ if ((block.commas >> 0 + block.ranges >> 0) === 0) {
66
+ block.invalid = true;
67
+ return true;
68
+ }
69
+ if (block.open !== true || block.close !== true) {
70
+ block.invalid = true;
71
+ return true;
72
+ }
73
+ return false;
74
+ };
75
+
76
+ /**
77
+ * Returns true if a node is an open or close node
78
+ */
79
+
80
+ exports.isOpenOrClose = node => {
81
+ if (node.type === 'open' || node.type === 'close') {
82
+ return true;
83
+ }
84
+ return node.open === true || node.close === true;
85
+ };
86
+
87
+ /**
88
+ * Reduce an array of text nodes.
89
+ */
90
+
91
+ exports.reduce = nodes => nodes.reduce((acc, node) => {
92
+ if (node.type === 'text') acc.push(node.value);
93
+ if (node.type === 'range') node.type = 'text';
94
+ return acc;
95
+ }, []);
96
+
97
+ /**
98
+ * Flatten an array
99
+ */
100
+
101
+ exports.flatten = (...args) => {
102
+ const result = [];
103
+ const flat = arr => {
104
+ for (let i = 0; i < arr.length; i++) {
105
+ let ele = arr[i];
106
+ Array.isArray(ele) ? flat(ele, result) : ele !== void 0 && result.push(ele);
107
+ }
108
+ return result;
109
+ };
110
+ flat(args);
111
+ return result;
112
+ };
node_modules/braces/package.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "braces",
3
+ "description": "Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.",
4
+ "version": "3.0.2",
5
+ "homepage": "https://github.com/micromatch/braces",
6
+ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
7
+ "contributors": [
8
+ "Brian Woodward (https://twitter.com/doowb)",
9
+ "Elan Shanker (https://github.com/es128)",
10
+ "Eugene Sharygin (https://github.com/eush77)",
11
+ "hemanth.hm (http://h3manth.com)",
12
+ "Jon Schlinkert (http://twitter.com/jonschlinkert)"
13
+ ],
14
+ "repository": "micromatch/braces",
15
+ "bugs": {
16
+ "url": "https://github.com/micromatch/braces/issues"
17
+ },
18
+ "license": "MIT",
19
+ "files": [
20
+ "index.js",
21
+ "lib"
22
+ ],
23
+ "main": "index.js",
24
+ "engines": {
25
+ "node": ">=8"
26
+ },
27
+ "scripts": {
28
+ "test": "mocha",
29
+ "benchmark": "node benchmark"
30
+ },
31
+ "dependencies": {
32
+ "fill-range": "^7.0.1"
33
+ },
34
+ "devDependencies": {
35
+ "ansi-colors": "^3.2.4",
36
+ "bash-path": "^2.0.1",
37
+ "gulp-format-md": "^2.0.0",
38
+ "mocha": "^6.1.1"
39
+ },
40
+ "keywords": [
41
+ "alpha",
42
+ "alphabetical",
43
+ "bash",
44
+ "brace",
45
+ "braces",
46
+ "expand",
47
+ "expansion",
48
+ "filepath",
49
+ "fill",
50
+ "fs",
51
+ "glob",
52
+ "globbing",
53
+ "letter",
54
+ "match",
55
+ "matches",
56
+ "matching",
57
+ "number",
58
+ "numerical",
59
+ "path",
60
+ "range",
61
+ "ranges",
62
+ "sh"
63
+ ],
64
+ "verb": {
65
+ "toc": false,
66
+ "layout": "default",
67
+ "tasks": [
68
+ "readme"
69
+ ],
70
+ "lint": {
71
+ "reflinks": true
72
+ },
73
+ "plugins": [
74
+ "gulp-format-md"
75
+ ]
76
+ }
77
+ }
node_modules/cache-content-type/History.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ 1.0.1 / 2018-07-18
3
+ ==================
4
+
5
+ **others**
6
+ * [[`88c57c0`](http://github.com/node-modules/cache-content-type/commit/88c57c0bd571da12d7917ae15ad67f02b7b5eabe)] - chore: support node 6 (dead-horse <<dead_horse@qq.com>>)
7
+
8
+ 1.0.0 / 2018-07-11
9
+ ==================
10
+
11
+ **features**
12
+ * [[`ecb6476`](http://github.com/node-modules/cache-content-type/commit/ecb6476da4a714246f12a86c191dc05aad42e806)] - feat: cache result of mimeTypes.contentType (dead-horse <<dead_horse@qq.com>>),fatal: No names found, cannot describe anything.
13
+
14
+ **others**
15
+
node_modules/cache-content-type/README.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## cache-content-type
2
+
3
+ The same as [mime-types](https://github.com/jshttp/mime-types)'s contentType method, but with result cached.
4
+
5
+ ### Install
6
+
7
+ ```bash
8
+ npm i cache-content-type
9
+ ```
10
+
11
+ ### Usage
12
+
13
+ ```js
14
+ const getType = require('cache-content-type');
15
+ const contentType = getType('html');
16
+ assert(contentType === 'text/html; charset=utf-8');
17
+ ```