Debian Codegraph @

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

raw
1 {
2 "_id": "regjsgen",
3 "_rev": "17-fba6a9736bdaf76dd0d551cb4975dce8",
4 "name": "regjsgen",
5 "description": "Generate regular expressions from regjsparser’s AST.",
6 "dist-tags": {
7 "latest": "0.5.2"
8 },
9 "versions": {
10 "0.1.0": {
11 "name": "regjsgen",
12 "description": "Generating JavaScript RegExps in JavaScript",
13 "version": "0.1.0",
14 "author": {
15 "name": "Benjamin Tan",
16 "email": "[email protected]",
17 "url": "https://d10.github.io/"
18 },
19 "license": "MIT",
20 "main": "./regjsgen",
21 "files": [
22 "LICENSE.txt",
23 "regjsgen.js",
24 "README.md"
25 ],
26 "homepage": "https://github.com/d10/regjsgen",
27 "repository": {
28 "type": "git",
29 "url": "[email protected]:d10/regjsgen.git"
30 },
31 "dependencies": {
32 "jsesc": "~0.4.3"
33 },
34 "scripts": {
35 "test": "node test/index.js"
36 },
37 "devDependencies": {
38 "got": "~0.3.0"
39 },
40 "bugs": {
41 "url": "https://github.com/d10/regjsgen/issues"
42 },
43 "_id": "[email protected]",
44 "dist": {
45 "shasum": "66188738ee46af809877f9a58f7f35bf575e3c7f",
46 "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.1.0.tgz"
47 },
48 "_from": ".",
49 "_npmVersion": "1.4.3",
50 "_npmUser": {
51 "name": "d10",
52 "email": "[email protected]"
53 },
54 "maintainers": [
55 {
56 "name": "d10",
57 "email": "[email protected]"
58 }
59 ],
60 "directories": {}
61 },
62 "0.1.1": {
63 "name": "regjsgen",
64 "description": "Generating JavaScript RegExps in JavaScript",
65 "version": "0.1.1",
66 "author": {
67 "name": "Benjamin Tan",
68 "email": "[email protected]",
69 "url": "https://d10.github.io/"
70 },
71 "license": "MIT",
72 "main": "./regjsgen",
73 "files": [
74 "LICENSE.txt",
75 "regjsgen.js",
76 "README.md"
77 ],
78 "homepage": "https://github.com/d10/regjsgen",
79 "repository": {
80 "type": "git",
81 "url": "[email protected]:d10/regjsgen.git"
82 },
83 "dependencies": {
84 "jsesc": "~0.4.3"
85 },
86 "scripts": {
87 "test": "node test/index.js"
88 },
89 "devDependencies": {
90 "got": "~0.3.0"
91 },
92 "bugs": {
93 "url": "https://github.com/d10/regjsgen/issues"
94 },
95 "_id": "[email protected]",
96 "dist": {
97 "shasum": "f44c338e7fe848487d484a3671b3162630902053",
98 "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.1.1.tgz"
99 },
100 "_from": ".",
101 "_npmVersion": "1.4.3",
102 "_npmUser": {
103 "name": "d10",
104 "email": "[email protected]"
105 },
106 "maintainers": [
107 {
108 "name": "d10",
109 "email": "[email protected]"
110 }
111 ],
112 "directories": {}
113 },
114 "0.1.2": {
115 "name": "regjsgen",
116 "description": "Generating JavaScript RegExps in JavaScript",
117 "version": "0.1.2",
118 "author": {
119 "name": "Benjamin Tan",
120 "email": "[email protected]",
121 "url": "https://d10.github.io/"
122 },
123 "license": "MIT",
124 "main": "./regjsgen",
125 "files": [
126 "LICENSE.txt",
127 "regjsgen.js",
128 "README.md"
129 ],
130 "homepage": "https://github.com/d10/regjsgen",
131 "repository": {
132 "type": "git",
133 "url": "[email protected]:d10/regjsgen.git"
134 },
135 "scripts": {
136 "test": "node test/index.js"
137 },
138 "devDependencies": {
139 "got": "~1.2.0",
140 "jsesc": "~0.5.0"
141 },
142 "bugs": {
143 "url": "https://github.com/d10/regjsgen/issues"
144 },
145 "_id": "[email protected]",
146 "dist": {
147 "shasum": "781a415384aaf584a863f93df4912394f6387d35",
148 "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.1.2.tgz"
149 },
150 "_from": ".",
151 "_npmVersion": "1.4.3",
152 "_npmUser": {
153 "name": "d10",
154 "email": "[email protected]"
155 },
156 "maintainers": [
157 {
158 "name": "d10",
159 "email": "[email protected]"
160 }
161 ],
162 "directories": {}
163 },
164 "0.2.0": {
165 "name": "regjsgen",
166 "version": "0.2.0",
167 "description": "Generate `RegExp`s from RegJSParser’s AST",
168 "homepage": "https://github.com/d10/regjsgen",
169 "license": "MIT",
170 "main": "regjsgen.js",
171 "keywords": [
172 "ast",
173 "generate",
174 "regex",
175 "regexp",
176 "regular expressions"
177 ],
178 "author": {
179 "name": "Benjamin Tan",
180 "email": "[email protected]",
181 "url": "https://d10.github.io/"
182 },
183 "contributors": [
184 {
185 "name": "Benjamin Tan",
186 "email": "[email protected]",
187 "url": "https://d10.github.io/"
188 },
189 {
190 "name": "Mathias Bynens",
191 "email": "[email protected]",
192 "url": "https://mathiasbynens.be/"
193 }
194 ],
195 "repository": {
196 "type": "git",
197 "url": "git://github.com/d10/regjsgen"
198 },
199 "scripts": {
200 "test": "node test/test.js"
201 },
202 "files": [
203 "LICENSE.txt",
204 "regjsgen.js",
205 "README.md"
206 ],
207 "devDependencies": {
208 "got": "~1.2.0",
209 "jsesc": "~0.5.0"
210 },
211 "bugs": {
212 "url": "https://github.com/d10/regjsgen/issues"
213 },
214 "_id": "[email protected]",
215 "dist": {
216 "shasum": "6c016adeac554f75823fe37ac05b92d5a4edb1f7",
217 "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz"
218 },
219 "_from": ".",
220 "_npmVersion": "1.4.3",
221 "_npmUser": {
222 "name": "d10",
223 "email": "[email protected]"
224 },
225 "maintainers": [
226 {
227 "name": "d10",
228 "email": "[email protected]"
229 }
230 ],
231 "directories": {}
232 },
233 "0.3.0": {
234 "name": "regjsgen",
235 "version": "0.3.0",
236 "description": "Generate regular expressions from regjsparser’s AST.",
237 "homepage": "https://github.com/demoneaux/regjsgen",
238 "main": "regjsgen.js",
239 "keywords": [
240 "ast",
241 "generate",
242 "regex",
243 "regexp",
244 "regular expressions"
245 ],
246 "license": "MIT",
247 "author": {
248 "name": "Benjamin Tan",
249 "url": "https://demoneaux.github.io/"
250 },
251 "repository": {
252 "type": "git",
253 "url": "git+https://github.com/demoneaux/regjsgen.git"
254 },
255 "bugs": {
256 "url": "https://github.com/demoneaux/regjsgen/issues"
257 },
258 "files": [
259 "LICENSE",
260 "regjsgen.js"
261 ],
262 "scripts": {
263 "test": "node tests/tests.js",
264 "coverage": "istanbul cover --report html tests/tests.js",
265 "update-fixtures": "node tests/update-fixtures.js"
266 },
267 "devDependencies": {
268 "coveralls": "^2.11.8",
269 "istanbul": "~0.4.2",
270 "regjsparser": "~0.2.0",
271 "request": "^2.69.0"
272 },
273 "gitHead": "3ca9009ef07ca8cf5a4f104be87b68a4a31d872b",
274 "_id": "[email protected]",
275 "_shasum": "0ee4a3e9276430cda25f1e789ea6c15b87b0cb43",
276 "_from": ".",
277 "_npmVersion": "2.15.0",
278 "_nodeVersion": "4.4.2",
279 "_npmUser": {
280 "name": "d10",
281 "email": "[email protected]"
282 },
283 "dist": {
284 "shasum": "0ee4a3e9276430cda25f1e789ea6c15b87b0cb43",
285 "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.3.0.tgz"
286 },
287 "maintainers": [
288 {
289 "name": "d10",
290 "email": "[email protected]"
291 }
292 ],
293 "_npmOperationalInternal": {
294 "host": "packages-16-east.internal.npmjs.com",
295 "tmp": "tmp/regjsgen-0.3.0.tgz_1464773921251_0.36796207097359"
296 },
297 "directories": {}
298 },
299 "0.4.0": {
300 "name": "regjsgen",
301 "version": "0.4.0",
302 "description": "Generate regular expressions from regjsparser’s AST.",
303 "homepage": "https://github.com/bnjmnt4n/regjsgen",
304 "main": "regjsgen.js",
305 "keywords": [
306 "ast",
307 "generate",
308 "regex",
309 "regexp",
310 "regular expressions"
311 ],
312 "license": "MIT",
313 "author": {
314 "name": "Benjamin Tan",
315 "url": "https://bnjmnt4n.now.sh/"
316 },
317 "repository": {
318 "type": "git",
319 "url": "git+https://github.com/bnjmnt4n/regjsgen.git"
320 },
321 "bugs": {
322 "url": "https://github.com/bnjmnt4n/regjsgen/issues"
323 },
324 "files": [
325 "LICENSE",
326 "regjsgen.js"
327 ],
328 "scripts": {
329 "test": "node tests/tests.js",
330 "coverage": "istanbul cover --report html tests/tests.js",
331 "update-fixtures": "node tests/update-fixtures.js"
332 },
333 "devDependencies": {
334 "codecov": "^3.0.0",
335 "istanbul": "~0.4.5",
336 "regjsparser": "~0.3.0",
337 "request": "^2.83.0"
338 },
339 "gitHead": "42bc3cd545a2fa25cf226324773f232325da824b",
340 "_id": "[email protected]",
341 "_npmVersion": "5.5.1",
342 "_nodeVersion": "8.9.3",
343 "_npmUser": {
344 "name": "d10",
345 "email": "[email protected]"
346 },
347 "dist": {
348 "integrity": "sha512-X51Lte1gCYUdlwhF28+2YMO0U6WeN0GLpgpA7LK7mbdDnkQYiwvEpmpe0F/cv5L14EbxgrdayAG3JETBv0dbXA==",
349 "shasum": "c1eb4c89a209263f8717c782591523913ede2561",
350 "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.4.0.tgz"
351 },
352 "maintainers": [
353 {
354 "name": "d10",
355 "email": "[email protected]"
356 }
357 ],
358 "_npmOperationalInternal": {
359 "host": "s3://npm-registry-packages",
360 "tmp": "tmp/regjsgen-0.4.0.tgz_1516192464288_0.0024640210904181004"
361 },
362 "directories": {}
363 },
364 "0.5.0": {
365 "name": "regjsgen",
366 "version": "0.5.0",
367 "description": "Generate regular expressions from regjsparser’s AST.",
368 "homepage": "https://github.com/bnjmnt4n/regjsgen",
369 "main": "regjsgen.js",
370 "keywords": [
371 "ast",
372 "generate",
373 "regex",
374 "regexp",
375 "regular expressions"
376 ],
377 "license": "MIT",
378 "author": {
379 "name": "Benjamin Tan",
380 "url": "https://bnjmnt4n.now.sh/"
381 },
382 "repository": {
383 "type": "git",
384 "url": "git+https://github.com/bnjmnt4n/regjsgen.git"
385 },
386 "bugs": {
387 "url": "https://github.com/bnjmnt4n/regjsgen/issues"
388 },
389 "scripts": {
390 "test": "node tests/tests.js",
391 "coverage": "istanbul cover --report html tests/tests.js",
392 "update-fixtures": "node tests/update-fixtures.js"
393 },
394 "devDependencies": {
395 "codecov": "^3.1.0",
396 "istanbul": "~0.4.5",
397 "regjsparser": "~0.4.0",
398 "request": "^2.88.0"
399 },
400 "gitHead": "3e898bdd4577e5f6fc9ffc7c867bbe8661b28344",
401 "_id": "[email protected]",
402 "_npmVersion": "5.5.1",
403 "_nodeVersion": "8.9.3",
404 "_npmUser": {
405 "name": "d10",
406 "email": "[email protected]"
407 },
408 "dist": {
409 "integrity": "sha512-RnIrLhrXCX5ow/E5/Mh2O4e/oa1/jW0eaBKTSy3LaCj+M3Bqvm97GWDp2yUtzIs4LEn65zR2yiYGFqb2ApnzDA==",
410 "shasum": "a7634dc08f89209c2049adda3525711fb97265dd",
411 "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.0.tgz",
412 "fileCount": 4,
413 "unpackedSize": 13630,
414 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb09BzCRA9TVsSAnZWagAAHL8P/2+qPfMU6ChUdXtesJcS\nb4J4OtV52K6iYdJky/TSI2udBPTtzyJ3JXIr5Q2RnBj3wIkDuhFGesCoZ7Ap\noUEm8jYnQXTV1PBt3Q1nTeUww0Wcj7/0T6PHVA1IuKHxt56yP5/h+C9eTbK+\nFabsdn86iXKZnUNggtiVAjE0JarqVfKZC9rpvrTdTFn9hx+rr02RPtXHHb1J\nHipRJsJ6zsLRyZ1ysIB3VZYrIya2SH1FjiddvVbLbB7QDnnlYKuzC7n4p4uB\nVcTWQMIBg3fkqjYIDvx765FABBqxaMxYdjiUsQK/mLz+uilKukbHWhKuGsAb\n/F47dJAUKxs6yXreiQsLNNhAUcWQbE7cDmNKfTI9sMSjtctogTqYWgJb0PVi\na0CbWNclNF7mFwxTsanjCFypZZSMgpTsxuJDf4UrjZvfsBYfqtH7HhpIVsZq\nBFBev4QpQkaK8SOm1R8QCFy1fiMqlEREU7goErBO6kQvQC9DiEq7h9pRwVnV\nhe2pr1OyMcsSkADI4EjvwrUgoirbZzpZ/5ir2LUyQ+QodIgPc6DhDEbldlI1\nmr0lFWHkcmFbo4TPcz/sDUS4SSVvrxiQ2J/XuH9s61YJltnwWhFFauRUdI22\nalBB6AE1zPw2kP580z7JLsEWyMPYELCKmcpXSRdq58NCMZXvrzbqjN/+6dBS\n1XD3\r\n=h56Q\r\n-----END PGP SIGNATURE-----\r\n"
415 },
416 "maintainers": [
417 {
418 "name": "d10",
419 "email": "[email protected]"
420 }
421 ],
422 "directories": {},
423 "_npmOperationalInternal": {
424 "host": "s3://npm-registry-packages",
425 "tmp": "tmp/regjsgen_0.5.0_1540608114803_0.0388782175432143"
426 },
427 "_hasShrinkwrap": false
428 },
429 "0.5.1": {
430 "name": "regjsgen",
431 "version": "0.5.1",
432 "description": "Generate regular expressions from regjsparser’s AST.",
433 "homepage": "https://github.com/bnjmnt4n/regjsgen",
434 "main": "regjsgen.js",
435 "keywords": [
436 "ast",
437 "generate",
438 "regex",
439 "regexp",
440 "regular expressions"
441 ],
442 "license": "MIT",
443 "author": {
444 "name": "Benjamin Tan",
445 "url": "https://bnjmnt4n.now.sh/"
446 },
447 "repository": {
448 "type": "git",
449 "url": "git+https://github.com/bnjmnt4n/regjsgen.git"
450 },
451 "bugs": {
452 "url": "https://github.com/bnjmnt4n/regjsgen/issues"
453 },
454 "scripts": {
455 "test": "node tests/tests.js",
456 "coverage": "nyc --reporter=html npm test",
457 "update-fixtures": "node tests/update-fixtures.js"
458 },
459 "devDependencies": {
460 "codecov": "^3.6.1",
461 "nyc": "^14.1.1",
462 "regjsparser": "~0.6.0",
463 "request": "^2.88.0"
464 },
465 "gitHead": "32eb43d493f81420feb1a7c47c1198d337b6ffdb",
466 "_id": "[email protected]",
467 "_npmVersion": "6.4.1",
468 "_nodeVersion": "10.15.1",
469 "_npmUser": {
470 "name": "d10",
471 "email": "[email protected]"
472 },
473 "dist": {
474 "integrity": "sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg==",
475 "shasum": "48f0bf1a5ea205196929c0d9798b42d1ed98443c",
476 "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.1.tgz",
477 "fileCount": 4,
478 "unpackedSize": 13772,
479 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdrBt0CRA9TVsSAnZWagAAIo4QAIAo3M/x97PN4Fq264bl\nzhpJo84sdtmMt6xe/7EQgD2Bgq+rSeDpylC2jX6OEbBbtZ54PTqo75N6Z4FO\n/3oxAt5UUjcvNpGGAqeIdTEfBINKjlYc/llHsyLcENnPBTPLyZHDPMBI2fNU\nFrprw4ABg532oJU28oMSBX/qnzY12ErcP2IhCQksTzpXA03kYBDmgZvfEgCf\nciTrTm3OWb+lxyrdgyrNrzV76tGaOse893Gg0CskcHW0lIuh7+CKozSQpsd8\nZN9fe5XqoQcoawlX69dcDZn19VnaJtbJEprmGvti7HATa3uhe36+FmMyLERG\nFBL17lAaFFtqhsfp2wJUlz42fKi0uHTzzOI4IBRvZ2lKwGHfF8oduxHI0Jhq\nZiQqKcl6cMRgBPydkgFauidwBR0qTgjBwFu6YmtSYzzDjhfS8j8ljEGgClEr\nevTVlVAjJTjYot01LMOJ+CwyscgIGoDkTFTJiqr0Lu8WR/U80yn3r5uiOBl4\nkoKWtI8jsJH2uDO1vhZnQaOxkhZHBbauyW+lQcEJW4Q/C2dV2VxdEIV6Yo1j\numO5by9Ot6c26LvadJWL+7DrzTgqUoliMS36c2bVzHFCrtgDvR0JtQI8Jawi\nwPFg6K1z5MhJcthFPo9OXBaRUFawPE7qWAWtiNS1Sc+EslALOgzM+fMxEjOC\nQu6t\r\n=/o5O\r\n-----END PGP SIGNATURE-----\r\n"
480 },
481 "maintainers": [
482 {
483 "name": "d10",
484 "email": "[email protected]"
485 }
486 ],
487 "directories": {},
488 "_npmOperationalInternal": {
489 "host": "s3://npm-registry-packages",
490 "tmp": "tmp/regjsgen_0.5.1_1571560308140_0.011090244139019267"
491 },
492 "_hasShrinkwrap": false
493 },
494 "0.5.2": {
495 "name": "regjsgen",
496 "version": "0.5.2",
497 "description": "Generate regular expressions from regjsparser’s AST.",
498 "homepage": "https://github.com/bnjmnt4n/regjsgen",
499 "main": "regjsgen.js",
500 "keywords": [
501 "ast",
502 "generate",
503 "regex",
504 "regexp",
505 "regular expressions"
506 ],
507 "license": "MIT",
508 "author": {
509 "name": "Benjamin Tan",
510 "url": "https://ofcr.se/"
511 },
512 "repository": {
513 "type": "git",
514 "url": "git+https://github.com/bnjmnt4n/regjsgen.git"
515 },
516 "bugs": {
517 "url": "https://github.com/bnjmnt4n/regjsgen/issues"
518 },
519 "scripts": {
520 "test": "node tests/tests.js",
521 "coverage": "nyc --reporter=html npm test",
522 "report-coverage": "nyc --reporter=lcov npm test && codecov",
523 "update-fixtures": "node tests/update-fixtures.js"
524 },
525 "devDependencies": {
526 "codecov": "^3.7.0",
527 "nyc": "^15.0.1",
528 "regjsparser": "~0.6.4",
529 "request": "^2.88.2"
530 },
531 "gitHead": "813c5d1f28c1fa4be3abcafaaf3240d28b8145f6",
532 "_id": "[email protected]",
533 "_nodeVersion": "12.16.2",
534 "_npmVersion": "6.14.4",
535 "_npmUser": {
536 "name": "d10",
537 "email": "[email protected]"
538 },
539 "dist": {
540 "integrity": "sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==",
541 "shasum": "92ff295fb1deecbf6ecdab2543d207e91aa33733",
542 "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.2.tgz",
543 "fileCount": 4,
544 "unpackedSize": 14331,
545 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeypJ2CRA9TVsSAnZWagAApiEP/0WXrHtSreMvZ+fnIcqz\nnvvBpQEr9Bxi5RTCDkO7Fj8e/EeY3uQ1+CXCV9iZTr4kyGAG2FY3M8O++fhE\n9F48hPN7zUsjFwcJ1tca6Dyqw+EP5jIZMwUXfXx4RhKhti64h9v30aRyJ0bf\nbZBQnomlODTtpjJujfngmo+ONp/zyQ6zePkcgEZZ3e6zMB/ufGuRV7sNRTwy\nDFjFJlr4WfoAKCZSTMGtZ219iKOkJtuHpaym8qQyD+xbhtbuOK5QPWp0FucW\nIWTCgxo3WEN6eQdWx5J7cb0MvZEjn4tdtGSLNcmDnnukZSYuyIp98n0R9b6X\nyihGhdLr8MtfC5q0+u/GG7/jtMw1I6dpAIg1U/bMapeZpBPWE67/NfocTIk/\nRvZ6vheZga7oC5WWqRnlDlCDt6s/NqXf07y7H3gLOFEQ+KkaC2Qp5ZkZljgZ\nJFXTJ7qENv/FfwmA3fdQNcl1IIDxmQdTWKjlgTriqi8YbF0Q3o8nnGCwGkSO\ngKdEBcnTMT4IOhBSyVUQpc2AgX5T3baKvEFGEiE1MIzvqijuWDOyf6rCZhbi\n7zAXWHsw/stFPKVRIpm6ILUp2Raw+qGqUrcZMFtzvvQ0ZstQgBsoZ+NaBK2I\nAtvWu6+X04imrU4rOvYjB2yJQxjTurPnjqwqDxZ2k1Pkih/RiN1dhd3gTuFv\nidcL\r\n=XH+a\r\n-----END PGP SIGNATURE-----\r\n"
546 },
547 "maintainers": [
548 {
549 "name": "d10",
550 "email": "[email protected]"
551 }
552 ],
553 "directories": {},
554 "_npmOperationalInternal": {
555 "host": "s3://npm-registry-packages",
556 "tmp": "tmp/regjsgen_0.5.2_1590334070278_0.09375785063276543"
557 },
558 "_hasShrinkwrap": false
559 }
560 },
561 "readme": "# regjsgen [![Build status][travis-ci-img]][travis-ci] [![Code coverage status][codecov-img]][codecov]\n\nGenerate regular expressions from [regjsparser][regjsparser]’s AST.\n\n## Installation\n\n```sh\nnpm i regjsgen\n```\n\n## API\n\n### `regjsgen.generate(ast)`\n\nThis function accepts an abstract syntax tree representing a regular expression (see [regjsparser][regjsparser]), and returns the generated regular expression string.\n\n```js\nconst regjsparser = require('regjsparser');\nconst regjsgen = require('regjsgen');\n\n// Generate an AST with `regjsparser`.\nlet ast = regjsparser.parse(regex);\n\n// Modify AST\n// …\n\n// Generate `RegExp` string with `regjsgen`.\nlet regex = regjsgen.generate(ast);\n```\n\n## Support\n\nTested in Node.js 0.10, 0.12, 4, 6, 8, 10, 12 and 14.<br>\nCompatible with regjsparser v0.6.4’s AST.\n\n\n[travis-ci]: https://travis-ci.org/bnjmnt4n/regjsgen\n[travis-ci-img]: https://travis-ci.org/bnjmnt4n/regjsgen.svg?branch=master\n[codecov]: https://codecov.io/gh/bnjmnt4n/regjsgen\n[codecov-img]: https://codecov.io/gh/bnjmnt4n/regjsgen/branch/master/graph/badge.svg\n[regjsparser]: https://github.com/jviereck/regjsparser\n",
562 "maintainers": [
563 {
564 "email": "[email protected]",
565 "name": "bnjmnt4n"
566 }
567 ],
568 "time": {
569 "modified": "2020-08-13T16:07:05.214Z",
570 "created": "2014-07-01T07:27:00.362Z",
571 "0.1.0": "2014-07-01T07:27:00.362Z",
572 "0.1.1": "2014-07-09T09:15:23.663Z",
573 "0.1.2": "2014-08-24T04:00:41.014Z",
574 "0.2.0": "2014-09-02T04:32:12.545Z",
575 "0.3.0": "2016-06-01T09:38:45.706Z",
576 "0.4.0": "2018-01-17T12:34:24.541Z",
577 "0.5.0": "2018-10-27T02:41:55.238Z",
578 "0.5.1": "2019-10-20T08:31:48.247Z",
579 "0.5.2": "2020-05-24T15:27:50.436Z"
580 },
581 "homepage": "https://github.com/bnjmnt4n/regjsgen",
582 "repository": {
583 "type": "git",
584 "url": "git+https://github.com/bnjmnt4n/regjsgen.git"
585 },
586 "author": {
587 "name": "Benjamin Tan",
588 "url": "https://ofcr.se/"
589 },
590 "bugs": {
591 "url": "https://github.com/bnjmnt4n/regjsgen/issues"
592 },
593 "license": "MIT",
594 "readmeFilename": "README.md",
595 "keywords": [
596 "ast",
597 "generate",
598 "regex",
599 "regexp",
600 "regular expressions"
601 ],
602 "users": {
603 "amobiz": true
604 }
605 }