Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/regexpp.json

raw
1 {
2 "_id": "regexpp",
3 "_rev": "9-9c34f682f0896bc537469a460e91ab66",
4 "name": "regexpp",
5 "dist-tags": {
6 "latest": "3.1.0",
7 "next": "2.0.0-beta.0"
8 },
9 "versions": {
10 "0.0.0": {
11 "name": "regexpp",
12 "version": "0.0.0",
13 "description": "RegExp parser.",
14 "engines": {
15 "node": ">=4.0.0"
16 },
17 "main": "index.js",
18 "files": [
19 "index.d.ts",
20 "index.js.map"
21 ],
22 "devDependencies": {
23 "@types/mocha": "^2.2.48",
24 "@types/node": "^9.4.6",
25 "dts-bundle": "^0.7.3",
26 "eslint": "^4.18.0",
27 "eslint-config-mysticatea": "^13.0.2",
28 "eslint-config-prettier": "^2.9.0",
29 "eslint-plugin-prettier": "^2.4.0",
30 "mocha": "^5.0.1",
31 "npm-run-all": "^4.1.2",
32 "nyc": "^11.4.1",
33 "opener": "^1.4.3",
34 "prettier": "^1.9.2",
35 "rollup": "^0.56.1",
36 "rollup-plugin-node-resolve": "^3.0.3",
37 "rollup-plugin-sourcemaps": "^0.4.2",
38 "rollup-watch": "^4.3.1",
39 "ts-node": "^5.0.0",
40 "typescript": "^2.8.0-dev.20180228",
41 "typescript-eslint-parser": "^14.0.0",
42 "wait-on": "^2.1.0",
43 "warun": "^1.0.0"
44 },
45 "scripts": {
46 "_mocha": "_mocha --require ts-node/register --reporter dot --timeout 10000 \"test/*.js\"",
47 "prebuild": "npm run -s clean",
48 "build": "tsc --project tsconfig.prod.json && rollup -c -o index.js && dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
49 "clean": "rimraf .nyc_output .temp coverage index.*",
50 "codecov": "nyc report --reporter lcovonly && codecov",
51 "coverage": "nyc report --reporter lcov && opener ./coverage/lcov-report/index.html",
52 "lint": "eslint src test --ext .ts",
53 "setup": "git submodule update --init && cd test/fixtures/eslint && npm install",
54 "pretest": "run-s build lint",
55 "test": "nyc npm run _mocha",
56 "preversion": "npm test",
57 "version": "npm run -s build",
58 "postversion": "git push && git push --tags",
59 "prewatch": "npm run -s clean",
60 "update:fixtures": "ts-node test/tools/update-fixtures.ts",
61 "watch": "run-p watch:*",
62 "watch:tsc": "tsc --watch",
63 "watch:rollup": "wait-on .temp/index.js && rollup -c -o index.js --watch",
64 "watch:test": "wait-on index.js && warun index.js \"test/*.ts\" --debounce 1000 --no-initial -- nyc -r lcov npm run -s _mocha",
65 "watch:coverage-report": "wait-on coverage/lcov-report/index.html && opener coverage/lcov-report/index.html"
66 },
67 "repository": {
68 "type": "git",
69 "url": "git+https://github.com/mysticatea/regexpp.git"
70 },
71 "keywords": [],
72 "author": {
73 "name": "Toru Nagashima",
74 "url": "https://github.com/mysticatea"
75 },
76 "license": "MIT",
77 "bugs": {
78 "url": "https://github.com/mysticatea/regexpp/issues"
79 },
80 "homepage": "https://github.com/mysticatea/regexpp#readme",
81 "gitHead": "c3af648a9f7f66ca025bbb338e039340d1a1cadb",
82 "_id": "[email protected]",
83 "_npmVersion": "5.6.0",
84 "_nodeVersion": "8.9.3",
85 "_npmUser": {
86 "name": "mysticatea",
87 "email": "[email protected]"
88 },
89 "dist": {
90 "integrity": "sha512-yT96c0L1zrkimBLB19Ot6FxW6EInDSdfMeuEe57s/cWofG9b20HWvhupqXtM7eIh0i9qhwXEh2/kEwV+rBRohg==",
91 "shasum": "6681c892b2494e530fd4c93f44b8de32ae0bfb18",
92 "tarball": "https://registry.npmjs.org/regexpp/-/regexpp-0.0.0.tgz",
93 "fileCount": 3,
94 "unpackedSize": 3623
95 },
96 "maintainers": [
97 {
98 "name": "mysticatea",
99 "email": "[email protected]"
100 }
101 ],
102 "directories": {},
103 "_npmOperationalInternal": {
104 "host": "s3://npm-registry-packages",
105 "tmp": "tmp/regexpp_0.0.0_1519813031685_0.46808276769335033"
106 },
107 "_hasShrinkwrap": false
108 },
109 "1.0.0": {
110 "name": "regexpp",
111 "version": "1.0.0",
112 "description": "Regular expression parser for ECMAScript 2018.",
113 "engines": {
114 "node": ">=4.0.0"
115 },
116 "main": "index.js",
117 "files": [
118 "index.d.ts",
119 "index.js.map"
120 ],
121 "devDependencies": {
122 "@types/eslint": "^4.16.0",
123 "@types/mocha": "^2.2.48",
124 "@types/node": "^9.4.6",
125 "dts-bundle": "^0.7.3",
126 "eslint": "^4.18.0",
127 "eslint-config-mysticatea": "^13.0.2",
128 "eslint-config-prettier": "^2.9.0",
129 "eslint-plugin-prettier": "^2.4.0",
130 "mocha": "^5.0.1",
131 "npm-run-all": "^4.1.2",
132 "prettier": "^1.9.2",
133 "rollup": "^0.56.1",
134 "rollup-plugin-node-resolve": "^3.0.3",
135 "rollup-plugin-sourcemaps": "^0.4.2",
136 "rollup-watch": "^4.3.1",
137 "ts-node": "^5.0.0",
138 "typescript": "^2.7.2",
139 "typescript-eslint-parser": "^14.0.0"
140 },
141 "scripts": {
142 "prebuild": "npm run -s clean",
143 "build": "tsc --project tsconfig.prod.json && rollup -c -o index.js && dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
144 "clean": "rimraf .temp index.*",
145 "lint": "eslint src test tools --ext .ts",
146 "pretest": "run-s build lint",
147 "test": "_mocha --require ts-node/register --reporter dot --timeout 10000 \"test/*.ts\"",
148 "update:test": "ts-node tools/update-fixtures.ts",
149 "update:ids": "ts-node tools/update-unicode-ids.ts",
150 "preversion": "npm test",
151 "version": "npm run -s build",
152 "postversion": "git push && git push --tags",
153 "prewatch": "npm run -s clean",
154 "watch": "npm run -s test -- --watch-extensions .ts --watch --growl"
155 },
156 "repository": {
157 "type": "git",
158 "url": "git+https://github.com/mysticatea/regexpp.git"
159 },
160 "keywords": [
161 "regexp",
162 "regular",
163 "expression",
164 "parser",
165 "validator",
166 "ast",
167 "abstract",
168 "syntax",
169 "tree",
170 "ecmascript",
171 "es2015",
172 "es2016",
173 "es2017",
174 "es2018",
175 "annexB"
176 ],
177 "author": {
178 "name": "Toru Nagashima",
179 "url": "https://github.com/mysticatea"
180 },
181 "license": "MIT",
182 "bugs": {
183 "url": "https://github.com/mysticatea/regexpp/issues"
184 },
185 "homepage": "https://github.com/mysticatea/regexpp#readme",
186 "gitHead": "cc2aa524c952a5c7e5f9c5c9b6cdcd2868fa6b4c",
187 "_id": "[email protected]",
188 "_npmVersion": "5.7.1",
189 "_nodeVersion": "8.9.3",
190 "_npmUser": {
191 "name": "mysticatea",
192 "email": "[email protected]"
193 },
194 "dist": {
195 "integrity": "sha512-LYAIipA6zfYVrOo+nxzvVc91xsXD0X9Hpqjb/zS5bh9gEkVgg3cdf61MtT8ZTclw7FdkF189oKKug2Ig1hI+4w==",
196 "shasum": "4bdc81199247f4a0109444e1f6273baa8ea0a5ee",
197 "tarball": "https://registry.npmjs.org/regexpp/-/regexpp-1.0.0.tgz",
198 "fileCount": 6,
199 "unpackedSize": 608232
200 },
201 "maintainers": [
202 {
203 "name": "mysticatea",
204 "email": "[email protected]"
205 }
206 ],
207 "directories": {},
208 "_npmOperationalInternal": {
209 "host": "s3://npm-registry-packages",
210 "tmp": "tmp/regexpp_1.0.0_1520249334973_0.6225448336418906"
211 },
212 "_hasShrinkwrap": false
213 },
214 "1.0.1": {
215 "name": "regexpp",
216 "version": "1.0.1",
217 "description": "Regular expression parser for ECMAScript 2018.",
218 "engines": {
219 "node": ">=4.0.0"
220 },
221 "main": "index.js",
222 "files": [
223 "index.d.ts",
224 "index.js.map"
225 ],
226 "devDependencies": {
227 "@types/eslint": "^4.16.0",
228 "@types/mocha": "^2.2.48",
229 "@types/node": "^9.4.6",
230 "dts-bundle": "^0.7.3",
231 "eslint": "^4.18.0",
232 "eslint-config-mysticatea": "^13.0.2",
233 "eslint-config-prettier": "^2.9.0",
234 "eslint-plugin-prettier": "^2.4.0",
235 "mocha": "^5.0.1",
236 "npm-run-all": "^4.1.2",
237 "prettier": "^1.9.2",
238 "rimraf": "^2.6.2",
239 "rollup": "^0.56.1",
240 "rollup-plugin-node-resolve": "^3.0.3",
241 "rollup-plugin-sourcemaps": "^0.4.2",
242 "rollup-watch": "^4.3.1",
243 "ts-node": "^5.0.0",
244 "typescript": "^2.7.2",
245 "typescript-eslint-parser": "^14.0.0"
246 },
247 "scripts": {
248 "prebuild": "npm run -s clean",
249 "build": "tsc --project tsconfig.prod.json && rollup -c -o index.js && dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
250 "clean": "rimraf .temp index.*",
251 "lint": "eslint src test tools --ext .ts",
252 "pretest": "run-s build lint",
253 "test": "_mocha --require ts-node/register --reporter dot --timeout 10000 \"test/*.ts\"",
254 "update:test": "ts-node tools/update-fixtures.ts",
255 "update:ids": "ts-node tools/update-unicode-ids.ts",
256 "preversion": "npm test",
257 "version": "npm run -s build",
258 "postversion": "git push && git push --tags",
259 "prewatch": "npm run -s clean",
260 "watch": "npm run -s test -- --watch-extensions .ts --watch --growl"
261 },
262 "repository": {
263 "type": "git",
264 "url": "git+https://github.com/mysticatea/regexpp.git"
265 },
266 "keywords": [
267 "regexp",
268 "regular",
269 "expression",
270 "parser",
271 "validator",
272 "ast",
273 "abstract",
274 "syntax",
275 "tree",
276 "ecmascript",
277 "es2015",
278 "es2016",
279 "es2017",
280 "es2018",
281 "annexB"
282 ],
283 "author": {
284 "name": "Toru Nagashima",
285 "url": "https://github.com/mysticatea"
286 },
287 "license": "MIT",
288 "bugs": {
289 "url": "https://github.com/mysticatea/regexpp/issues"
290 },
291 "homepage": "https://github.com/mysticatea/regexpp#readme",
292 "gitHead": "46c894e4c842d4cefda0ff827f962586e2e0395a",
293 "_id": "[email protected]",
294 "_npmVersion": "5.7.1",
295 "_nodeVersion": "4.8.7",
296 "_npmUser": {
297 "name": "mysticatea",
298 "email": "[email protected]"
299 },
300 "dist": {
301 "integrity": "sha512-8Ph721maXiOYSLtaDGKVmDn5wdsNaF6Px85qFNeMPQq0r8K5Y10tgP6YuR65Ws35n4DvzFcCxEnRNBIXQunzLw==",
302 "shasum": "d857c3a741dce075c2848dcb019a0a975b190d43",
303 "tarball": "https://registry.npmjs.org/regexpp/-/regexpp-1.0.1.tgz",
304 "fileCount": 6,
305 "unpackedSize": 618893
306 },
307 "maintainers": [
308 {
309 "name": "mysticatea",
310 "email": "[email protected]"
311 }
312 ],
313 "directories": {},
314 "_npmOperationalInternal": {
315 "host": "s3://npm-registry-packages",
316 "tmp": "tmp/regexpp_1.0.1_1520343616447_0.3437533717937047"
317 },
318 "_hasShrinkwrap": false
319 },
320 "1.1.0": {
321 "name": "regexpp",
322 "version": "1.1.0",
323 "description": "Regular expression parser for ECMAScript 2018.",
324 "engines": {
325 "node": ">=4.0.0"
326 },
327 "main": "index",
328 "files": [
329 "index.*"
330 ],
331 "dependencies": {},
332 "devDependencies": {
333 "@types/eslint": "^4.16.0",
334 "@types/mocha": "^2.2.48",
335 "@types/node": "^9.4.6",
336 "babel-core": "^6.26.0",
337 "babel-plugin-transform-es2015-destructuring": "^6.23.0",
338 "babel-plugin-transform-es2015-parameters": "^6.24.1",
339 "babel-plugin-transform-es2015-spread": "^6.22.0",
340 "dts-bundle": "^0.7.3",
341 "eslint": "^4.18.0",
342 "eslint-config-mysticatea": "^13.0.2",
343 "eslint-config-prettier": "^2.9.0",
344 "eslint-plugin-prettier": "^2.4.0",
345 "mocha": "^5.0.1",
346 "npm-run-all": "^4.1.2",
347 "prettier": "^1.9.2",
348 "rimraf": "^2.6.2",
349 "rollup": "^0.56.1",
350 "rollup-plugin-babel": "^3.0.3",
351 "rollup-plugin-node-resolve": "^3.0.3",
352 "rollup-plugin-sourcemaps": "^0.4.2",
353 "rollup-watch": "^4.3.1",
354 "ts-node": "^5.0.0",
355 "typescript": "^2.7.2",
356 "typescript-eslint-parser": "^14.0.0"
357 },
358 "scripts": {
359 "prebuild": "npm run -s clean",
360 "build": "run-s build:*",
361 "build:tsc": "tsc --module es2015 --target es2015",
362 "build:mjs": "rollup -c rollup-mjs.config.js",
363 "build:js": "rollup -c rollup-js.config.js",
364 "build:dts": "dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
365 "clean": "rimraf .temp index.*",
366 "lint": "eslint src test tools --ext .ts",
367 "pretest": "run-s build lint",
368 "test": "_mocha --require ts-node/register --reporter dot --timeout 10000 \"test/*.ts\"",
369 "update:test": "ts-node tools/update-fixtures.ts",
370 "update:ids": "ts-node tools/update-unicode-ids.ts",
371 "preversion": "npm test",
372 "version": "npm run -s build",
373 "postversion": "git push && git push --tags",
374 "prewatch": "npm run -s clean",
375 "watch": "npm run -s test -- --watch-extensions .ts --watch --growl"
376 },
377 "repository": {
378 "type": "git",
379 "url": "git+https://github.com/mysticatea/regexpp.git"
380 },
381 "keywords": [
382 "regexp",
383 "regular",
384 "expression",
385 "parser",
386 "validator",
387 "ast",
388 "abstract",
389 "syntax",
390 "tree",
391 "ecmascript",
392 "es2015",
393 "es2016",
394 "es2017",
395 "es2018",
396 "annexB"
397 ],
398 "author": {
399 "name": "Toru Nagashima",
400 "url": "https://github.com/mysticatea"
401 },
402 "license": "MIT",
403 "bugs": {
404 "url": "https://github.com/mysticatea/regexpp/issues"
405 },
406 "homepage": "https://github.com/mysticatea/regexpp#readme",
407 "gitHead": "258651ef294c23faaa4bc25861a9e77c21136c48",
408 "_id": "[email protected]",
409 "_npmVersion": "5.8.0",
410 "_nodeVersion": "8.11.1",
411 "_npmUser": {
412 "name": "mysticatea",
413 "email": "[email protected]"
414 },
415 "dist": {
416 "integrity": "sha512-LOPw8FpgdQF9etWMaAfG/WRthIdXJGYp4mJ2Jgn/2lpkbod9jPn0t9UqN7AxBOKNfzRbYyVfgc7Vk4t/MpnXgw==",
417 "shasum": "0e3516dd0b7904f413d2d4193dce4618c3a689ab",
418 "tarball": "https://registry.npmjs.org/regexpp/-/regexpp-1.1.0.tgz",
419 "fileCount": 8,
420 "unpackedSize": 1110886
421 },
422 "maintainers": [
423 {
424 "name": "mysticatea",
425 "email": "[email protected]"
426 }
427 ],
428 "directories": {},
429 "_npmOperationalInternal": {
430 "host": "s3://npm-registry-packages",
431 "tmp": "tmp/regexpp_1.1.0_1522403159299_0.2810022828991172"
432 },
433 "_hasShrinkwrap": false
434 },
435 "2.0.0-beta.0": {
436 "name": "regexpp",
437 "version": "2.0.0-beta.0",
438 "description": "Regular expression parser for ECMAScript 2018.",
439 "engines": {
440 "node": ">=6.5.0"
441 },
442 "main": "index",
443 "files": [
444 "index.*"
445 ],
446 "dependencies": {},
447 "devDependencies": {
448 "@types/eslint": "^4.16.2",
449 "@types/mocha": "^5.2.2",
450 "@types/node": "^10.3.3",
451 "coveralls": "^3.0.1",
452 "dts-bundle": "^0.7.3",
453 "eslint": "^4.19.1",
454 "eslint-plugin-mysticatea": "^5.0.0-beta.15",
455 "mocha": "^5.2.0",
456 "npm-run-all": "^4.1.3",
457 "nyc": "^12.0.2",
458 "rimraf": "^2.6.2",
459 "rollup": "^0.60.7",
460 "rollup-plugin-node-resolve": "^3.3.0",
461 "rollup-plugin-sourcemaps": "^0.4.2",
462 "rollup-watch": "^4.3.1",
463 "ts-node": "^6.1.1",
464 "typescript": "^2.9.2",
465 "typescript-eslint-parser": "^16.0.0"
466 },
467 "scripts": {
468 "prebuild": "npm run -s clean",
469 "build": "run-s build:*",
470 "build:tsc": "tsc --module es2015",
471 "build:rollup": "rollup -c",
472 "build:dts": "dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
473 "clean": "rimraf .temp index.*",
474 "coveralls": "nyc report --reporter=text-lcov | coveralls",
475 "lint": "eslint scripts src test --ext .ts",
476 "pretest": "run-s build lint",
477 "test": "nyc _mocha \"test/*.ts\" --reporter dot --timeout 10000",
478 "update:test": "ts-node scripts/update-fixtures.ts",
479 "update:ids": "ts-node scripts/update-unicode-ids.ts",
480 "preversion": "npm test",
481 "version": "npm run -s build",
482 "postversion": "git push && git push --tags",
483 "prewatch": "npm run -s clean",
484 "watch": "_mocha \"test/*.ts\" --require ts-node/register --reporter dot --timeout 10000 --watch-extensions .ts --watch --growl"
485 },
486 "repository": {
487 "type": "git",
488 "url": "git+https://github.com/mysticatea/regexpp.git"
489 },
490 "keywords": [
491 "regexp",
492 "regular",
493 "expression",
494 "parser",
495 "validator",
496 "ast",
497 "abstract",
498 "syntax",
499 "tree",
500 "ecmascript",
501 "es2015",
502 "es2016",
503 "es2017",
504 "es2018",
505 "annexB"
506 ],
507 "author": {
508 "name": "Toru Nagashima",
509 "url": "https://github.com/mysticatea"
510 },
511 "license": "MIT",
512 "bugs": {
513 "url": "https://github.com/mysticatea/regexpp/issues"
514 },
515 "homepage": "https://github.com/mysticatea/regexpp#readme",
516 "readme": "# regexpp\n\n[![npm version](https://img.shields.io/npm/v/regexpp.svg)](https://www.npmjs.com/package/regexpp)\n[![Downloads/month](https://img.shields.io/npm/dm/regexpp.svg)](http://www.npmtrends.com/regexpp)\n[![Build Status](https://travis-ci.org/mysticatea/regexpp.svg?branch=master)](https://travis-ci.org/mysticatea/regexpp)\n[![Coverage Status](https://coveralls.io/repos/github/mysticatea/regexpp/badge.svg)](https://coveralls.io/github/mysticatea/regexpp)\n[![Dependency Status](https://david-dm.org/mysticatea/regexpp.svg)](https://david-dm.org/mysticatea/regexpp)\n\nThe regular expression parser for ECMAScript.\n\n## 💿 Installation\n\n```bash\n$ npm install regexpp\n```\n\n- require Node.js 6.5.0 or newer.\n\n## 📖 Usage\n\n```ts\nimport {\n AST,\n RegExpParser,\n RegExpValidator,\n RegExpVisitor,\n parseRegExpLiteral,\n validateRegExpLiteral,\n visitRegExpAST\n} from \"regexpp\"\n```\n\n### parseRegExpLiteral(source, options?)\n\nParse a given regular expression literal then make AST object.\n\nThis is equivalent to `new RegExpParser(options).parseLiteral(source)`.\n\n- **Parameters:**\n - `source` (`string | RegExp`) The source code to parse.\n - `options?` ([`RegExpParser.Options`]) The options to parse.\n- **Return:**\n - The AST of the regular expression.\n\n### validateRegExpLiteral(source, options?)\n\nValidate a given regular expression literal.\n\nThis is equivalent to `new RegExpValidator(options).validateLiteral(source)`.\n\n- **Parameters:**\n - `source` (`string`) The source code to validate.\n - `options?` ([`RegExpValidator.Options`]) The options to validate.\n\n### visitRegExpAST(ast, handlers)\n\nVisit each node of a given AST.\n\nThis is equivalent to `new RegExpVisitor(handlers).visit(ast)`.\n\n- **Parameters:**\n - `ast` ([`AST.Node`]) The AST to visit.\n - `handlers` ([`RegExpVisitor.Handlers`]) The callbacks.\n\n### RegExpParser\n\n#### new RegExpParser(options?)\n\n- **Parameters:**\n - `options?` ([`RegExpParser.Options`]) The options to parse.\n\n#### parser.parseLiteral(source, start?, end?)\n\nParse a regular expression literal.\n\n- **Parameters:**\n - `source` (`string`) The source code to parse. E.g. `\"/abc/g\"`.\n - `start?` (`number`) The start index in the source code. Default is `0`.\n - `end?` (`number`) The end index in the source code. Default is `source.length`.\n- **Return:**\n - The AST of the regular expression.\n\n#### parser.parsePattern(source, start?, end?, uFlag?)\n\nParse a regular expression pattern.\n\n- **Parameters:**\n - `source` (`string`) The source code to parse. E.g. `\"abc\"`.\n - `start?` (`number`) The start index in the source code. Default is `0`.\n - `end?` (`number`) The end index in the source code. Default is `source.length`.\n - `uFlag?` (`boolean`) The flag to enable Unicode mode.\n- **Return:**\n - The AST of the regular expression pattern.\n\n#### parser.parseFlags(source, start?, end?)\n\nParse a regular expression flags.\n\n- **Parameters:**\n - `source` (`string`) The source code to parse. E.g. `\"gim\"`.\n - `start?` (`number`) The start index in the source code. Default is `0`.\n - `end?` (`number`) The end index in the source code. Default is `source.length`.\n- **Return:**\n - The AST of the regular expression flags.\n\n### RegExpValidator\n\n#### new RegExpValidator(options)\n\n- **Parameters:**\n - `options` ([`RegExpValidator.Options`]) The options to validate.\n\n#### validator.validateLiteral(source, start, end)\n\nValidate a regular expression literal.\n\n- **Parameters:**\n - `source` (`string`) The source code to validate.\n - `start?` (`number`) The start index in the source code. Default is `0`.\n - `end?` (`number`) The end index in the source code. Default is `source.length`.\n\n#### validator.validatePattern(source, start, end, uFlag)\n\nValidate a regular expression pattern.\n\n- **Parameters:**\n - `source` (`string`) The source code to validate.\n - `start?` (`number`) The start index in the source code. Default is `0`.\n - `end?` (`number`) The end index in the source code. Default is `source.length`.\n - `uFlag?` (`boolean`) The flag to enable Unicode mode.\n\n#### validator.validateFlags(source, start, end)\n\nValidate a regular expression flags.\n\n- **Parameters:**\n - `source` (`string`) The source code to validate.\n - `start?` (`number`) The start index in the source code. Default is `0`.\n - `end?` (`number`) The end index in the source code. Default is `source.length`.\n\n### RegExpVisitor\n\n#### new RegExpVisitor(handlers)\n\n- **Parameters:**\n - `handlers` ([`RegExpVisitor.Handlers`]) The callbacks.\n\n#### visitor.visit(ast)\n\nValidate a regular expression literal.\n\n- **Parameters:**\n - `ast` ([`AST.Node`]) The AST to visit.\n\n## 📰 Changelog\n\n- [GitHub Releases](https://github.com/mysticatea/regexpp/releases)\n\n## 🍻 Contributing\n\nWelcome contributing!\n\nPlease use GitHub's Issues/PRs.\n\n### Development Tools\n\n- `npm test` runs tests and measures coverage.\n- `npm run build` compiles TypeScript source code to `index.js`, `index.js.map`, and `index.d.ts`.\n- `npm run clean` removes the temporary files which are created by `npm test` and `npm run build`.\n- `npm run lint` runs ESLint.\n- `npm run update:test` updates test fixtures.\n- `npm run update:ids` updates `src/unicode/ids.ts`.\n- `npm run watch` runs tests with `--watch` option.\n\n[`AST.Node`]: src/ast.ts#L4\n[`RegExpParser.Options`]: src/parser.ts#L539\n[`RegExpValidator.Options`]: src/validator.ts#L127\n[`RegExpVisitor.Handlers`]: src/visitor.ts#L204\n",
517 "readmeFilename": "README.md",
518 "gitHead": "3938ad4f7d7d64618a89fe9476587cd5f4c14af5",
519 "_id": "[email protected]",
520 "_npmVersion": "6.1.0",
521 "_nodeVersion": "10.4.0",
522 "_npmUser": {
523 "name": "mysticatea",
524 "email": "[email protected]"
525 },
526 "dist": {
527 "integrity": "sha512-jTmmohvR5ADdpDhN6odv4gsDy5wKLNJVMqH5DBlLYSIvcdyELo9atEg6Hyeb4tjARCBFcQvJc7gG1dB3V9JSsg==",
528 "shasum": "14d47dec39c4cd37090a12ac243fc981b73b63df",
529 "tarball": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.0-beta.0.tgz",
530 "fileCount": 8,
531 "unpackedSize": 1251124,
532 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbK1ApCRA9TVsSAnZWagAAN4MP/ja5hO6miy1QmasvPRq0\nk8cSH/VPL3s3JDAhVyWeuyyHHDOVazMyuwLIbSUj+6z7h8XAJfabWxVcY/yr\nkGnRy+MtVXjqysBbyDcS9ez1bFaGuQB/3INsn46Q2xaFoPahrDDt/MAxbQsJ\nhKKMTXaCVI73eIuqADHy1KIKbJ9YlXEGupTu3fsnetZ81TYbI5Fg8HK4K6EP\nq4fylk9wu1gt2fOXx05bT4Q/XjxKWw3yzuW5CuLl9rBfWnNCD3XQ1E4IMuTz\n1jJgBVViMDbnmIWeBh1R1SJNM0Sr8rjf3MnTXemDDV4r97p2eUpN0UMfM/MD\nDf/BhNVD8v8M0HnEWefWnnHX5434lIhBBM0iZyRyWoKhP9EHqIHReZwCPkUp\n2ajiwBdT7f860J19IlD9yWk0Now2UtanO1ydksz2JtfSXnQc185xEH7sqkd7\nneQFFjhIatqNUuBT8k37Bsk4GI9396cv7rOI0612wDoCwP/J5/vvb0zqfBAX\nrGkL1ciqCMbOJ99mZqhZO7zt/JxbFfeZX5mq2DnN0Zat0Cwzqf5q8aeVgaAf\nv9XGCHpMCMhR/WVsN1d+PXqittX2hECT4NBgv2h5BA+2k3OAS8gb9IJgOI6m\nFUPCx0hPURv9gd5/VTf18isZrCf7OpXKL2CVo4aMv5n4fzUY/5DGSBAXRCwC\nY0YQ\r\n=Quws\r\n-----END PGP SIGNATURE-----\r\n"
533 },
534 "maintainers": [
535 {
536 "name": "mysticatea",
537 "email": "[email protected]"
538 }
539 ],
540 "directories": {},
541 "_npmOperationalInternal": {
542 "host": "s3://npm-registry-packages",
543 "tmp": "tmp/regexpp_2.0.0-beta.0_1529565224684_0.0593522495032206"
544 },
545 "_hasShrinkwrap": false
546 },
547 "2.0.0": {
548 "name": "regexpp",
549 "version": "2.0.0",
550 "description": "Regular expression parser for ECMAScript 2018.",
551 "engines": {
552 "node": ">=6.5.0"
553 },
554 "main": "index",
555 "files": [
556 "index.*"
557 ],
558 "dependencies": {},
559 "devDependencies": {
560 "@types/eslint": "^4.16.2",
561 "@types/mocha": "^5.2.2",
562 "@types/node": "^10.3.3",
563 "coveralls": "^3.0.1",
564 "dts-bundle": "^0.7.3",
565 "eslint": "^4.19.1",
566 "eslint-plugin-mysticatea": "^5.0.0-beta.15",
567 "mocha": "^5.2.0",
568 "npm-run-all": "^4.1.3",
569 "nyc": "^12.0.2",
570 "rimraf": "^2.6.2",
571 "rollup": "^0.60.7",
572 "rollup-plugin-node-resolve": "^3.3.0",
573 "rollup-plugin-sourcemaps": "^0.4.2",
574 "rollup-watch": "^4.3.1",
575 "ts-node": "^6.1.1",
576 "typescript": "^2.9.2",
577 "typescript-eslint-parser": "^16.0.0"
578 },
579 "scripts": {
580 "prebuild": "npm run -s clean",
581 "build": "run-s build:*",
582 "build:tsc": "tsc --module es2015",
583 "build:rollup": "rollup -c",
584 "build:dts": "dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
585 "clean": "rimraf .temp index.*",
586 "coveralls": "nyc report --reporter=text-lcov | coveralls",
587 "lint": "eslint scripts src test --ext .ts",
588 "pretest": "run-s build lint",
589 "test": "nyc _mocha \"test/*.ts\" --reporter dot --timeout 10000",
590 "update:test": "ts-node scripts/update-fixtures.ts",
591 "update:ids": "ts-node scripts/update-unicode-ids.ts",
592 "preversion": "npm test",
593 "version": "npm run -s build",
594 "postversion": "git push && git push --tags",
595 "prewatch": "npm run -s clean",
596 "watch": "_mocha \"test/*.ts\" --require ts-node/register --reporter dot --timeout 10000 --watch-extensions .ts --watch --growl"
597 },
598 "repository": {
599 "type": "git",
600 "url": "git+https://github.com/mysticatea/regexpp.git"
601 },
602 "keywords": [
603 "regexp",
604 "regular",
605 "expression",
606 "parser",
607 "validator",
608 "ast",
609 "abstract",
610 "syntax",
611 "tree",
612 "ecmascript",
613 "es2015",
614 "es2016",
615 "es2017",
616 "es2018",
617 "annexB"
618 ],
619 "author": {
620 "name": "Toru Nagashima",
621 "url": "https://github.com/mysticatea"
622 },
623 "license": "MIT",
624 "bugs": {
625 "url": "https://github.com/mysticatea/regexpp/issues"
626 },
627 "homepage": "https://github.com/mysticatea/regexpp#readme",
628 "gitHead": "813344e7f2d08f4ab729df57da5cd56c022c7417",
629 "_id": "[email protected]",
630 "_npmVersion": "6.1.0",
631 "_nodeVersion": "10.4.0",
632 "_npmUser": {
633 "name": "mysticatea",
634 "email": "[email protected]"
635 },
636 "dist": {
637 "integrity": "sha512-g2FAVtR8Uh8GO1Nv5wpxW7VFVwHcCEr4wyA8/MHiRkO8uHoR5ntAA8Uq3P1vvMTX/BeQiRVSpDGLd+Wn5HNOTA==",
638 "shasum": "b2a7534a85ca1b033bcf5ce9ff8e56d4e0755365",
639 "tarball": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.0.tgz",
640 "fileCount": 8,
641 "unpackedSize": 1251117,
642 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbLjtVCRA9TVsSAnZWagAAGt0P/0I6LQ/X/pSQ61HccWjP\n1Dqqt5VQRXUicC5Pl+Rx//eghwqPmSAR8qovAHe7YxxwqfKZg3fyBmOdU2UU\nzqKlRhfXsqZpfym9KMFfSrnEdZSkJ8SfkWjo4VBcQdEo8ng003E+NWAW/ce2\nb6PDFhX87begWQhnO1v61u3rurXLNS51rKq+FyGwffqmQmK5SAaQla9T24CG\nTu5HMUh1YP9unNhIyoVemKrwhATSEuBXBAGm63bU9xtarmfoUwAy1xZi2knM\nhzhXukcwKjDYVAVcH5R0wxM0vEpMKtoF+96b0XP4MF2vobQq3QiYpXzMMsGt\nMQju1O+4f3Vgt1fhozeE7yAH7WziIr2pfz0JIEGfC3fxBhrrVm4iIxzGQVBb\nyU86KzRI2dxa5d9RReAC3ghwRSFesV3VEULl90BQ8TgV6j8ySMB/YQx2AiaX\n0uZtuzfleI1z4PnZtFIeQPQa6+l/UIqOsWY1lB6N201BAt2DVrlPJADQr1m+\nPTtaR5VrVpp7NUdWFOuUw/PYhmQI4MSUre38Fmk8o293gbjp+LsSiIB42QcU\nrBvF9nZpcHaXxusXSwICO0aGHaWb7ynpQtQofu34PRXGB8cy6I6FKWp+R4nE\npY1Cy59BsNGKZR/7RIfToeO3WSYM4/tm6sWDyhMk2mF3uOsRDP+aUcA2gLKA\nsNL1\r\n=1nBw\r\n-----END PGP SIGNATURE-----\r\n"
643 },
644 "maintainers": [
645 {
646 "name": "mysticatea",
647 "email": "[email protected]"
648 }
649 ],
650 "directories": {},
651 "_npmOperationalInternal": {
652 "host": "s3://npm-registry-packages",
653 "tmp": "tmp/regexpp_2.0.0_1529756501513_0.18740514059504432"
654 },
655 "_hasShrinkwrap": false
656 },
657 "2.0.1": {
658 "name": "regexpp",
659 "version": "2.0.1",
660 "description": "Regular expression parser for ECMAScript 2018.",
661 "engines": {
662 "node": ">=6.5.0"
663 },
664 "main": "index",
665 "dependencies": {},
666 "devDependencies": {
667 "@types/eslint": "^4.16.2",
668 "@types/mocha": "^5.2.2",
669 "@types/node": "^10.3.3",
670 "coveralls": "^3.0.1",
671 "dts-bundle": "^0.7.3",
672 "eslint": "^4.19.1",
673 "eslint-plugin-mysticatea": "^5.0.0-beta.15",
674 "mocha": "^5.2.0",
675 "npm-run-all": "^4.1.3",
676 "nyc": "^12.0.2",
677 "rimraf": "^2.6.2",
678 "rollup": "^0.60.7",
679 "rollup-plugin-node-resolve": "^3.3.0",
680 "rollup-plugin-sourcemaps": "^0.4.2",
681 "rollup-watch": "^4.3.1",
682 "ts-node": "^6.1.1",
683 "typescript": "^2.9.2",
684 "typescript-eslint-parser": "^16.0.0"
685 },
686 "scripts": {
687 "prebuild": "npm run -s clean",
688 "build": "run-s build:*",
689 "build:tsc": "tsc --module es2015",
690 "build:rollup": "rollup -c",
691 "build:dts": "dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
692 "clean": "rimraf .temp index.*",
693 "coveralls": "nyc report --reporter=text-lcov | coveralls",
694 "lint": "eslint scripts src test --ext .ts",
695 "pretest": "run-s build lint",
696 "test": "nyc _mocha \"test/*.ts\" --reporter dot --timeout 10000",
697 "update:test": "ts-node scripts/update-fixtures.ts",
698 "update:ids": "ts-node scripts/update-unicode-ids.ts",
699 "preversion": "npm test",
700 "version": "npm run -s build",
701 "postversion": "git push && git push --tags",
702 "prewatch": "npm run -s clean",
703 "watch": "_mocha \"test/*.ts\" --require ts-node/register --reporter dot --timeout 10000 --watch-extensions .ts --watch --growl"
704 },
705 "repository": {
706 "type": "git",
707 "url": "git+https://github.com/mysticatea/regexpp.git"
708 },
709 "keywords": [
710 "regexp",
711 "regular",
712 "expression",
713 "parser",
714 "validator",
715 "ast",
716 "abstract",
717 "syntax",
718 "tree",
719 "ecmascript",
720 "es2015",
721 "es2016",
722 "es2017",
723 "es2018",
724 "annexB"
725 ],
726 "author": {
727 "name": "Toru Nagashima",
728 "url": "https://github.com/mysticatea"
729 },
730 "license": "MIT",
731 "bugs": {
732 "url": "https://github.com/mysticatea/regexpp/issues"
733 },
734 "homepage": "https://github.com/mysticatea/regexpp#readme",
735 "gitHead": "d68b435cbf6d37e3fa6af186965a7b6c738bf685",
736 "_id": "[email protected]",
737 "_npmVersion": "6.2.0",
738 "_nodeVersion": "10.11.0",
739 "_npmUser": {
740 "name": "mysticatea",
741 "email": "[email protected]"
742 },
743 "dist": {
744 "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==",
745 "shasum": "8d19d31cf632482b589049f8281f93dbcba4d07f",
746 "tarball": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz",
747 "fileCount": 8,
748 "unpackedSize": 1254503,
749 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbtzEHCRA9TVsSAnZWagAAJ+wP/RmHGA/KF2dK7DXUMybr\np/9RenpuMVLg5ycBV08EhE2L0Xs4DNckRWKNaWdNnV6NeMHsz9xhwHTPapdU\n7ZxVXCAnpTav3VySek6vdGsb5J5uE4sBFkTBVLKkTT70JUEbJx5kFWTkyooC\nslUjs7gHc5hPRJju8UvupNmDGGnSVMH0nCZP3XCXSeFuv5fRpHheHRFwoVD3\nMlKbcEmQGMGo5wNCiBmpleLlmP1ox7w+IVnVJYdGXBh9ctV2PF9vN0ApANNF\n6HsqZTrIWF6Cy7hRTnp+lQ9eM813hDD8aq4DALWt4eS82iTN4e4G8SiQFopn\nki2f8S6qsSd9rfP4cRTYToj0RhyxHEpvenFkveYncJrMcKKA45q/WSvMaq3c\nWX3RW8v93f3PsHF1AwaP9FRmxWX0ImnEeTcafHWlU8bR+613K7eCFjTPB9Bf\nCxObX7bTL3AGO2Yt5xMMMwepN01r25sWmJGA+7Ruwq7w0LQAZEZB2CAEayq2\nBrkC6qlWSHrnKlr5FdCoGjk48Rlh+zZ8yDhIbrr2QZjSm6/JNyGINaYvRcU5\n5hHCwRowkGPAVM9puqc57hVcStA+PO3gB17kesu1/+ToWFNWNU97log8iHib\n99KgGUmroAvaIkUkf5Hu/y6psrD9oGR4nwXUWIFprQvB13yXsvhrDnmbZTQ6\n2hqA\r\n=fkdW\r\n-----END PGP SIGNATURE-----\r\n"
750 },
751 "maintainers": [
752 {
753 "name": "mysticatea",
754 "email": "[email protected]"
755 }
756 ],
757 "directories": {},
758 "_npmOperationalInternal": {
759 "host": "s3://npm-registry-packages",
760 "tmp": "tmp/regexpp_2.0.1_1538732295013_0.4707850604874946"
761 },
762 "_hasShrinkwrap": false
763 },
764 "3.0.0": {
765 "name": "regexpp",
766 "version": "3.0.0",
767 "description": "Regular expression parser for ECMAScript.",
768 "engines": {
769 "node": ">=8"
770 },
771 "main": "index",
772 "dependencies": {},
773 "devDependencies": {
774 "@mysticatea/eslint-plugin": "^11.0.0",
775 "@types/eslint": "^4.16.2",
776 "@types/jsdom": "^12.2.4",
777 "@types/mocha": "^5.2.2",
778 "@types/node": "^12.6.8",
779 "codecov": "^3.5.0",
780 "dts-bundle": "^0.7.3",
781 "eslint": "^6.1.0",
782 "jsdom": "^15.1.1",
783 "mocha": "^6.2.0",
784 "npm-run-all": "^4.1.5",
785 "nyc": "^14.1.1",
786 "rimraf": "^2.6.2",
787 "rollup": "^1.17.0",
788 "rollup-plugin-node-resolve": "^5.2.0",
789 "rollup-plugin-sourcemaps": "^0.4.2",
790 "ts-node": "^8.3.0",
791 "typescript": "^3.5.3"
792 },
793 "scripts": {
794 "prebuild": "npm run -s clean",
795 "build": "run-s build:*",
796 "build:tsc": "tsc --module es2015",
797 "build:rollup": "rollup -c",
798 "build:dts": "dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
799 "clean": "rimraf .temp index.*",
800 "codecov": "nyc report -r lcovonly && codecov -t ${CODECOV_TOKEN} --disable=gcov",
801 "lint": "eslint scripts src test --ext .ts",
802 "pretest": "run-s build lint",
803 "test": "nyc _mocha \"test/*.ts\" --reporter dot --timeout 10000",
804 "update:test": "ts-node scripts/update-fixtures.ts",
805 "update:unicode": "run-s update:unicode:*",
806 "update:unicode:ids": "ts-node scripts/update-unicode-ids.ts",
807 "update:unicode:props": "ts-node scripts/update-unicode-properties.ts",
808 "preversion": "npm test",
809 "version": "npm run -s build",
810 "postversion": "git push && git push --tags",
811 "prewatch": "npm run -s clean",
812 "watch": "_mocha \"test/*.ts\" --require ts-node/register --reporter dot --timeout 10000 --watch-extensions .ts --watch --growl"
813 },
814 "repository": {
815 "type": "git",
816 "url": "git+https://github.com/mysticatea/regexpp.git"
817 },
818 "keywords": [
819 "regexp",
820 "regular",
821 "expression",
822 "parser",
823 "validator",
824 "ast",
825 "abstract",
826 "syntax",
827 "tree",
828 "ecmascript",
829 "es2015",
830 "es2016",
831 "es2017",
832 "es2018",
833 "es2019",
834 "es2020",
835 "annexB"
836 ],
837 "author": {
838 "name": "Toru Nagashima",
839 "url": "https://github.com/mysticatea"
840 },
841 "license": "MIT",
842 "bugs": {
843 "url": "https://github.com/mysticatea/regexpp/issues"
844 },
845 "homepage": "https://github.com/mysticatea/regexpp#readme",
846 "gitHead": "b4d683df665e3b9a5d014eea34222fdb3d6f2e7c",
847 "_id": "[email protected]",
848 "_nodeVersion": "12.6.0",
849 "_npmVersion": "6.11.2",
850 "dist": {
851 "integrity": "sha512-Z+hNr7RAVWxznLPuA7DIh8UNX1j9CDrUQxskw9IrBE1Dxue2lyXT+shqEIeLUjrokxIP8CMy1WkjgG3rTsd5/g==",
852 "shasum": "dd63982ee3300e67b41c1956f850aa680d9d330e",
853 "tarball": "https://registry.npmjs.org/regexpp/-/regexpp-3.0.0.tgz",
854 "fileCount": 8,
855 "unpackedSize": 331440,
856 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdaI2bCRA9TVsSAnZWagAArb4P/jW9yLLpWiahpfqe1Bcb\noxfNci9004GeGHBnrjehjL1Qv3SClL6Pf9N7ZMNIzDqWDnF0y8a0zGfoTW4G\n/M4AV9okqft4a9R8jAU/rKEclaA9e5HIZivvj5mG7STVz6fa5DM4yJ+akNMk\nmd/UArhFom5JtfNj/LMJuYuaFGX3oxhXUjMzIP7ierYpjCg09IWNVgfgq7j3\n9ibvVxkYHrTMsjYeN0dEkZdhQIR9UVX3wQv8mw+kJ0lB/00OvgALJNM2r4Fa\nhBnKbiwUZ18hjCuwbLBs2gUMFR9k/LR/Ypydf0reauopb9RH7bmvm2IdP2h+\nNM3zFV4Q3yp4sdjPZ9HMYoO5m4fv7S5sY69AcD51q8HUD0iebtsiwTDEGEzS\na84ulxH5SOIFN0ue+vEtAjglzv90DR722Cq7m9atm5ulPOi9hq0ITtwiOzmk\nHaCoTG6mhruTFH/Fnb8Bq0Xf3V3Y1p//sLHwYFPYzYcSyI7u07F8QL842Fk8\n0YAFh76SNsjCzqd7QoV5nQeMphZjmNCNwc+uuKnbZu+4AZRsnf0gl6ciFWmo\nsAZRLD0rc2NffmkYQA/+paYfUxYVysVnxU8xUlJjicVgWOBB1P2M2nvoFp9R\nErOQ0Gy6lQpEfIudHKFzpOtlhDuBRNSY5bMQzFzc1CYheJeEwgNavd334vPC\n9fx0\r\n=wkHo\r\n-----END PGP SIGNATURE-----\r\n"
857 },
858 "maintainers": [
859 {
860 "name": "mysticatea",
861 "email": "[email protected]"
862 }
863 ],
864 "_npmUser": {
865 "name": "mysticatea",
866 "email": "[email protected]"
867 },
868 "directories": {},
869 "_npmOperationalInternal": {
870 "host": "s3://npm-registry-packages",
871 "tmp": "tmp/regexpp_3.0.0_1567133082487_0.36859641486891404"
872 },
873 "_hasShrinkwrap": false
874 },
875 "3.1.0": {
876 "name": "regexpp",
877 "version": "3.1.0",
878 "description": "Regular expression parser for ECMAScript.",
879 "engines": {
880 "node": ">=8"
881 },
882 "main": "index",
883 "dependencies": {},
884 "devDependencies": {
885 "@mysticatea/eslint-plugin": "^11.0.0",
886 "@types/eslint": "^4.16.2",
887 "@types/jsdom": "^12.2.4",
888 "@types/mocha": "^5.2.2",
889 "@types/node": "^12.6.8",
890 "codecov": "^3.5.0",
891 "dts-bundle": "^0.7.3",
892 "eslint": "^6.1.0",
893 "jsdom": "^15.1.1",
894 "mocha": "^6.2.0",
895 "npm-run-all": "^4.1.5",
896 "nyc": "^14.1.1",
897 "rimraf": "^2.6.2",
898 "rollup": "^1.17.0",
899 "rollup-plugin-node-resolve": "^5.2.0",
900 "rollup-plugin-sourcemaps": "^0.4.2",
901 "ts-node": "^8.3.0",
902 "typescript": "^3.5.3"
903 },
904 "scripts": {
905 "prebuild": "npm run -s clean",
906 "build": "run-s build:*",
907 "build:tsc": "tsc --module es2015",
908 "build:rollup": "rollup -c",
909 "build:dts": "dts-bundle --name regexpp --main .temp/index.d.ts --out ../index.d.ts",
910 "clean": "rimraf .temp index.*",
911 "codecov": "nyc report -r lcovonly && codecov -t ${CODECOV_TOKEN} --disable=gcov",
912 "lint": "eslint scripts src test --ext .ts",
913 "pretest": "run-s build lint",
914 "test": "nyc _mocha \"test/*.ts\" --reporter dot --timeout 10000",
915 "update:test": "ts-node scripts/update-fixtures.ts",
916 "update:unicode": "run-s update:unicode:*",
917 "update:unicode:ids": "ts-node scripts/update-unicode-ids.ts",
918 "update:unicode:props": "ts-node scripts/update-unicode-properties.ts",
919 "preversion": "npm test",
920 "version": "npm run -s build",
921 "postversion": "git push && git push --tags",
922 "prewatch": "npm run -s clean",
923 "watch": "_mocha \"test/*.ts\" --require ts-node/register --reporter dot --timeout 10000 --watch-extensions ts --watch --growl"
924 },
925 "repository": {
926 "type": "git",
927 "url": "git+https://github.com/mysticatea/regexpp.git"
928 },
929 "keywords": [
930 "regexp",
931 "regular",
932 "expression",
933 "parser",
934 "validator",
935 "ast",
936 "abstract",
937 "syntax",
938 "tree",
939 "ecmascript",
940 "es2015",
941 "es2016",
942 "es2017",
943 "es2018",
944 "es2019",
945 "es2020",
946 "annexB"
947 ],
948 "author": {
949 "name": "Toru Nagashima",
950 "url": "https://github.com/mysticatea"
951 },
952 "license": "MIT",
953 "bugs": {
954 "url": "https://github.com/mysticatea/regexpp/issues"
955 },
956 "homepage": "https://github.com/mysticatea/regexpp#readme",
957 "funding": "https://github.com/sponsors/mysticatea",
958 "gitHead": "5563cf33c4976d01a348472b818221fc199bbeb6",
959 "_id": "[email protected]",
960 "_nodeVersion": "12.12.0",
961 "_npmVersion": "6.14.4",
962 "dist": {
963 "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==",
964 "shasum": "206d0ad0a5648cffbdb8ae46438f3dc51c9f78e2",
965 "tarball": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz",
966 "fileCount": 8,
967 "unpackedSize": 300946,
968 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeiLnFCRA9TVsSAnZWagAAGW4P/2DVgNzSQ+VFPYXcsi9k\nCGD1JwB2gGMNi9EDCBESo2oojc4sQ/yApudDf1RarzqXV43iE4A5I+1GG36F\ntmbWr78LBthyP9fyf1r4RSpAE5l9TYx2Fw/isN6NkcWnWYa/0mFebiu6EQSc\n/nyU7U98xBamWVvbLLlcbP+jYvSDn8IcJzzGOEQ1862XdP9EwGc1Gy2xOsxt\nLaTvVlMwPGxi2TQihy18W+52Twq9FOCnYHOFbqHUIilTBtQqUMjb+Pn+B2Gy\nNmN1g9zpaRwQE9kBexdrzq8BK72UfxpuxIdmFOyrXqWu5H6Zz0tVx9lOUAJa\n7kPCWEXgZVDvt3OqanB3NUytaK43gwmoUeEtH+lL3JUbP3rJqNHt7kfVB2aM\nKZ/rt+H/RNLeACD7btYL+gXSH3PHnhIIwhIJr+gjy9vTFfRGM3f89ShVW55y\ndcchX0WclyMnAlzEH+POuLu+bD3WXzrqXij/gIhlE/TFa2vTPJyJ92NEbg26\nbstB4sZzM/xaRdYLaGZRgB2B1tAH0Y9xu9wc0SaDs2I0MU8VnQ855cJ88BNZ\n3AxU2XrJgUs628KVqH3RRl1et383trKeh1l2KW1e6Hk1Jl02ekcTxLs1SAYz\noA9FarTc5tDlHHvvWhFB6cFtE1xyIZXW1QkI9KOpQ6EqRChn0ceq1/m4eqh5\n8DEo\r\n=ruP1\r\n-----END PGP SIGNATURE-----\r\n"
969 },
970 "maintainers": [
971 {
972 "name": "mysticatea",
973 "email": "[email protected]"
974 }
975 ],
976 "_npmUser": {
977 "name": "mysticatea",
978 "email": "[email protected]"
979 },
980 "directories": {},
981 "_npmOperationalInternal": {
982 "host": "s3://npm-registry-packages",
983 "tmp": "tmp/regexpp_3.1.0_1586018756638_0.30465495628858386"
984 },
985 "_hasShrinkwrap": false
986 }
987 },
988 "time": {
989 "created": "2018-02-28T10:17:11.684Z",
990 "0.0.0": "2018-02-28T10:17:11.737Z",
991 "modified": "2020-04-04T16:45:59.330Z",
992 "1.0.0": "2018-03-05T11:28:55.155Z",
993 "1.0.1": "2018-03-06T13:40:16.526Z",
994 "1.1.0": "2018-03-30T09:45:59.374Z",
995 "2.0.0-beta.0": "2018-06-21T07:13:44.761Z",
996 "2.0.0": "2018-06-23T12:21:41.579Z",
997 "2.0.1": "2018-10-05T09:38:15.306Z",
998 "3.0.0": "2019-08-30T02:44:42.581Z",
999 "3.1.0": "2020-04-04T16:45:56.795Z"
1000 },
1001 "maintainers": [
1002 {
1003 "name": "mysticatea",
1004 "email": "[email protected]"
1005 }
1006 ],
1007 "description": "Regular expression parser for ECMAScript.",
1008 "homepage": "https://github.com/mysticatea/regexpp#readme",
1009 "keywords": [
1010 "regexp",
1011 "regular",
1012 "expression",
1013 "parser",
1014 "validator",
1015 "ast",
1016 "abstract",
1017 "syntax",
1018 "tree",
1019 "ecmascript",
1020 "es2015",
1021 "es2016",
1022 "es2017",
1023 "es2018",
1024 "es2019",
1025 "es2020",
1026 "annexB"
1027 ],
1028 "repository": {
1029 "type": "git",
1030 "url": "git+https://github.com/mysticatea/regexpp.git"
1031 },
1032 "author": {
1033 "name": "Toru Nagashima",
1034 "url": "https://github.com/mysticatea"
1035 },
1036 "bugs": {
1037 "url": "https://github.com/mysticatea/regexpp/issues"
1038 },
1039 "license": "MIT",
1040 "readme": "# regexpp\n\n[![npm version](https://img.shields.io/npm/v/regexpp.svg)](https://www.npmjs.com/package/regexpp)\n[![Downloads/month](https://img.shields.io/npm/dm/regexpp.svg)](http://www.npmtrends.com/regexpp)\n[![Build Status](https://github.com/mysticatea/regexpp/workflows/CI/badge.svg)](https://github.com/mysticatea/regexpp/actions)\n[![codecov](https://codecov.io/gh/mysticatea/regexpp/branch/master/graph/badge.svg)](https://codecov.io/gh/mysticatea/regexpp)\n[![Dependency Status](https://david-dm.org/mysticatea/regexpp.svg)](https://david-dm.org/mysticatea/regexpp)\n\nA regular expression parser for ECMAScript.\n\n## 💿 Installation\n\n```bash\n$ npm install regexpp\n```\n\n- require Node.js 8 or newer.\n\n## 📖 Usage\n\n```ts\nimport {\n AST,\n RegExpParser,\n RegExpValidator,\n RegExpVisitor,\n parseRegExpLiteral,\n validateRegExpLiteral,\n visitRegExpAST\n} from \"regexpp\"\n```\n\n### parseRegExpLiteral(source, options?)\n\nParse a given regular expression literal then make AST object.\n\nThis is equivalent to `new RegExpParser(options).parseLiteral(source)`.\n\n- **Parameters:**\n - `source` (`string | RegExp`) The source code to parse.\n - `options?` ([`RegExpParser.Options`]) The options to parse.\n- **Return:**\n - The AST of the regular expression.\n\n### validateRegExpLiteral(source, options?)\n\nValidate a given regular expression literal.\n\nThis is equivalent to `new RegExpValidator(options).validateLiteral(source)`.\n\n- **Parameters:**\n - `source` (`string`) The source code to validate.\n - `options?` ([`RegExpValidator.Options`]) The options to validate.\n\n### visitRegExpAST(ast, handlers)\n\nVisit each node of a given AST.\n\nThis is equivalent to `new RegExpVisitor(handlers).visit(ast)`.\n\n- **Parameters:**\n - `ast` ([`AST.Node`]) The AST to visit.\n - `handlers` ([`RegExpVisitor.Handlers`]) The callbacks.\n\n### RegExpParser\n\n#### new RegExpParser(options?)\n\n- **Parameters:**\n - `options?` ([`RegExpParser.Options`]) The options to parse.\n\n#### parser.parseLiteral(source, start?, end?)\n\nParse a regular expression literal.\n\n- **Parameters:**\n - `source` (`string`) The source code to parse. E.g. `\"/abc/g\"`.\n - `start?` (`number`) The start index in the source code. Default is `0`.\n - `end?` (`number`) The end index in the source code. Default is `source.length`.\n- **Return:**\n - The AST of the regular expression.\n\n#### parser.parsePattern(source, start?, end?, uFlag?)\n\nParse a regular expression pattern.\n\n- **Parameters:**\n - `source` (`string`) The source code to parse. E.g. `\"abc\"`.\n - `start?` (`number`) The start index in the source code. Default is `0`.\n - `end?` (`number`) The end index in the source code. Default is `source.length`.\n - `uFlag?` (`boolean`) The flag to enable Unicode mode.\n- **Return:**\n - The AST of the regular expression pattern.\n\n#### parser.parseFlags(source, start?, end?)\n\nParse a regular expression flags.\n\n- **Parameters:**\n - `source` (`string`) The source code to parse. E.g. `\"gim\"`.\n - `start?` (`number`) The start index in the source code. Default is `0`.\n - `end?` (`number`) The end index in the source code. Default is `source.length`.\n- **Return:**\n - The AST of the regular expression flags.\n\n### RegExpValidator\n\n#### new RegExpValidator(options)\n\n- **Parameters:**\n - `options` ([`RegExpValidator.Options`]) The options to validate.\n\n#### validator.validateLiteral(source, start, end)\n\nValidate a regular expression literal.\n\n- **Parameters:**\n - `source` (`string`) The source code to validate.\n - `start?` (`number`) The start index in the source code. Default is `0`.\n - `end?` (`number`) The end index in the source code. Default is `source.length`.\n\n#### validator.validatePattern(source, start, end, uFlag)\n\nValidate a regular expression pattern.\n\n- **Parameters:**\n - `source` (`string`) The source code to validate.\n - `start?` (`number`) The start index in the source code. Default is `0`.\n - `end?` (`number`) The end index in the source code. Default is `source.length`.\n - `uFlag?` (`boolean`) The flag to enable Unicode mode.\n\n#### validator.validateFlags(source, start, end)\n\nValidate a regular expression flags.\n\n- **Parameters:**\n - `source` (`string`) The source code to validate.\n - `start?` (`number`) The start index in the source code. Default is `0`.\n - `end?` (`number`) The end index in the source code. Default is `source.length`.\n\n### RegExpVisitor\n\n#### new RegExpVisitor(handlers)\n\n- **Parameters:**\n - `handlers` ([`RegExpVisitor.Handlers`]) The callbacks.\n\n#### visitor.visit(ast)\n\nValidate a regular expression literal.\n\n- **Parameters:**\n - `ast` ([`AST.Node`]) The AST to visit.\n\n## 📰 Changelog\n\n- [GitHub Releases](https://github.com/mysticatea/regexpp/releases)\n\n## 🍻 Contributing\n\nWelcome contributing!\n\nPlease use GitHub's Issues/PRs.\n\n### Development Tools\n\n- `npm test` runs tests and measures coverage.\n- `npm run build` compiles TypeScript source code to `index.js`, `index.js.map`, and `index.d.ts`.\n- `npm run clean` removes the temporary files which are created by `npm test` and `npm run build`.\n- `npm run lint` runs ESLint.\n- `npm run update:test` updates test fixtures.\n- `npm run update:ids` updates `src/unicode/ids.ts`.\n- `npm run watch` runs tests with `--watch` option.\n\n[`AST.Node`]: src/ast.ts#L4\n[`RegExpParser.Options`]: src/parser.ts#L539\n[`RegExpValidator.Options`]: src/validator.ts#L127\n[`RegExpVisitor.Handlers`]: src/visitor.ts#L204\n",
1041 "readmeFilename": "README.md"
1042 }