{ "_id": "regjsgen", "_rev": "17-fba6a9736bdaf76dd0d551cb4975dce8", "name": "regjsgen", "description": "Generate regular expressions from regjsparser’s AST.", "dist-tags": { "latest": "0.5.2" }, "versions": { "0.1.0": { "name": "regjsgen", "description": "Generating JavaScript RegExps in JavaScript", "version": "0.1.0", "author": { "name": "Benjamin Tan", "email": "demoneaux@gmail.com", "url": "https://d10.github.io/" }, "license": "MIT", "main": "./regjsgen", "files": [ "LICENSE.txt", "regjsgen.js", "README.md" ], "homepage": "https://github.com/d10/regjsgen", "repository": { "type": "git", "url": "git@github.com:d10/regjsgen.git" }, "dependencies": { "jsesc": "~0.4.3" }, "scripts": { "test": "node test/index.js" }, "devDependencies": { "got": "~0.3.0" }, "bugs": { "url": "https://github.com/d10/regjsgen/issues" }, "_id": "regjsgen@0.1.0", "dist": { "shasum": "66188738ee46af809877f9a58f7f35bf575e3c7f", "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.1.0.tgz" }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "d10", "email": "demoneaux@gmail.com" }, "maintainers": [ { "name": "d10", "email": "demoneaux@gmail.com" } ], "directories": {} }, "0.1.1": { "name": "regjsgen", "description": "Generating JavaScript RegExps in JavaScript", "version": "0.1.1", "author": { "name": "Benjamin Tan", "email": "demoneaux@gmail.com", "url": "https://d10.github.io/" }, "license": "MIT", "main": "./regjsgen", "files": [ "LICENSE.txt", "regjsgen.js", "README.md" ], "homepage": "https://github.com/d10/regjsgen", "repository": { "type": "git", "url": "git@github.com:d10/regjsgen.git" }, "dependencies": { "jsesc": "~0.4.3" }, "scripts": { "test": "node test/index.js" }, "devDependencies": { "got": "~0.3.0" }, "bugs": { "url": "https://github.com/d10/regjsgen/issues" }, "_id": "regjsgen@0.1.1", "dist": { "shasum": "f44c338e7fe848487d484a3671b3162630902053", "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.1.1.tgz" }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "d10", "email": "demoneaux@gmail.com" }, "maintainers": [ { "name": "d10", "email": "demoneaux@gmail.com" } ], "directories": {} }, "0.1.2": { "name": "regjsgen", "description": "Generating JavaScript RegExps in JavaScript", "version": "0.1.2", "author": { "name": "Benjamin Tan", "email": "demoneaux@gmail.com", "url": "https://d10.github.io/" }, "license": "MIT", "main": "./regjsgen", "files": [ "LICENSE.txt", "regjsgen.js", "README.md" ], "homepage": "https://github.com/d10/regjsgen", "repository": { "type": "git", "url": "git@github.com:d10/regjsgen.git" }, "scripts": { "test": "node test/index.js" }, "devDependencies": { "got": "~1.2.0", "jsesc": "~0.5.0" }, "bugs": { "url": "https://github.com/d10/regjsgen/issues" }, "_id": "regjsgen@0.1.2", "dist": { "shasum": "781a415384aaf584a863f93df4912394f6387d35", "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.1.2.tgz" }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "d10", "email": "demoneaux@gmail.com" }, "maintainers": [ { "name": "d10", "email": "demoneaux@gmail.com" } ], "directories": {} }, "0.2.0": { "name": "regjsgen", "version": "0.2.0", "description": "Generate `RegExp`s from RegJSParser’s AST", "homepage": "https://github.com/d10/regjsgen", "license": "MIT", "main": "regjsgen.js", "keywords": [ "ast", "generate", "regex", "regexp", "regular expressions" ], "author": { "name": "Benjamin Tan", "email": "demoneaux@gmail.com", "url": "https://d10.github.io/" }, "contributors": [ { "name": "Benjamin Tan", "email": "demoneaux@gmail.com", "url": "https://d10.github.io/" }, { "name": "Mathias Bynens", "email": "mathias@qiwi.be", "url": "https://mathiasbynens.be/" } ], "repository": { "type": "git", "url": "git://github.com/d10/regjsgen" }, "scripts": { "test": "node test/test.js" }, "files": [ "LICENSE.txt", "regjsgen.js", "README.md" ], "devDependencies": { "got": "~1.2.0", "jsesc": "~0.5.0" }, "bugs": { "url": "https://github.com/d10/regjsgen/issues" }, "_id": "regjsgen@0.2.0", "dist": { "shasum": "6c016adeac554f75823fe37ac05b92d5a4edb1f7", "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz" }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "d10", "email": "demoneaux@gmail.com" }, "maintainers": [ { "name": "d10", "email": "demoneaux@gmail.com" } ], "directories": {} }, "0.3.0": { "name": "regjsgen", "version": "0.3.0", "description": "Generate regular expressions from regjsparser’s AST.", "homepage": "https://github.com/demoneaux/regjsgen", "main": "regjsgen.js", "keywords": [ "ast", "generate", "regex", "regexp", "regular expressions" ], "license": "MIT", "author": { "name": "Benjamin Tan", "url": "https://demoneaux.github.io/" }, "repository": { "type": "git", "url": "git+https://github.com/demoneaux/regjsgen.git" }, "bugs": { "url": "https://github.com/demoneaux/regjsgen/issues" }, "files": [ "LICENSE", "regjsgen.js" ], "scripts": { "test": "node tests/tests.js", "coverage": "istanbul cover --report html tests/tests.js", "update-fixtures": "node tests/update-fixtures.js" }, "devDependencies": { "coveralls": "^2.11.8", "istanbul": "~0.4.2", "regjsparser": "~0.2.0", "request": "^2.69.0" }, "gitHead": "3ca9009ef07ca8cf5a4f104be87b68a4a31d872b", "_id": "regjsgen@0.3.0", "_shasum": "0ee4a3e9276430cda25f1e789ea6c15b87b0cb43", "_from": ".", "_npmVersion": "2.15.0", "_nodeVersion": "4.4.2", "_npmUser": { "name": "d10", "email": "demoneaux@gmail.com" }, "dist": { "shasum": "0ee4a3e9276430cda25f1e789ea6c15b87b0cb43", "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.3.0.tgz" }, "maintainers": [ { "name": "d10", "email": "demoneaux@gmail.com" } ], "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/regjsgen-0.3.0.tgz_1464773921251_0.36796207097359" }, "directories": {} }, "0.4.0": { "name": "regjsgen", "version": "0.4.0", "description": "Generate regular expressions from regjsparser’s AST.", "homepage": "https://github.com/bnjmnt4n/regjsgen", "main": "regjsgen.js", "keywords": [ "ast", "generate", "regex", "regexp", "regular expressions" ], "license": "MIT", "author": { "name": "Benjamin Tan", "url": "https://bnjmnt4n.now.sh/" }, "repository": { "type": "git", "url": "git+https://github.com/bnjmnt4n/regjsgen.git" }, "bugs": { "url": "https://github.com/bnjmnt4n/regjsgen/issues" }, "files": [ "LICENSE", "regjsgen.js" ], "scripts": { "test": "node tests/tests.js", "coverage": "istanbul cover --report html tests/tests.js", "update-fixtures": "node tests/update-fixtures.js" }, "devDependencies": { "codecov": "^3.0.0", "istanbul": "~0.4.5", "regjsparser": "~0.3.0", "request": "^2.83.0" }, "gitHead": "42bc3cd545a2fa25cf226324773f232325da824b", "_id": "regjsgen@0.4.0", "_npmVersion": "5.5.1", "_nodeVersion": "8.9.3", "_npmUser": { "name": "d10", "email": "demoneaux@gmail.com" }, "dist": { "integrity": "sha512-X51Lte1gCYUdlwhF28+2YMO0U6WeN0GLpgpA7LK7mbdDnkQYiwvEpmpe0F/cv5L14EbxgrdayAG3JETBv0dbXA==", "shasum": "c1eb4c89a209263f8717c782591523913ede2561", "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.4.0.tgz" }, "maintainers": [ { "name": "d10", "email": "demoneaux@gmail.com" } ], "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/regjsgen-0.4.0.tgz_1516192464288_0.0024640210904181004" }, "directories": {} }, "0.5.0": { "name": "regjsgen", "version": "0.5.0", "description": "Generate regular expressions from regjsparser’s AST.", "homepage": "https://github.com/bnjmnt4n/regjsgen", "main": "regjsgen.js", "keywords": [ "ast", "generate", "regex", "regexp", "regular expressions" ], "license": "MIT", "author": { "name": "Benjamin Tan", "url": "https://bnjmnt4n.now.sh/" }, "repository": { "type": "git", "url": "git+https://github.com/bnjmnt4n/regjsgen.git" }, "bugs": { "url": "https://github.com/bnjmnt4n/regjsgen/issues" }, "scripts": { "test": "node tests/tests.js", "coverage": "istanbul cover --report html tests/tests.js", "update-fixtures": "node tests/update-fixtures.js" }, "devDependencies": { "codecov": "^3.1.0", "istanbul": "~0.4.5", "regjsparser": "~0.4.0", "request": "^2.88.0" }, "gitHead": "3e898bdd4577e5f6fc9ffc7c867bbe8661b28344", "_id": "regjsgen@0.5.0", "_npmVersion": "5.5.1", "_nodeVersion": "8.9.3", "_npmUser": { "name": "d10", "email": "demoneaux@gmail.com" }, "dist": { "integrity": "sha512-RnIrLhrXCX5ow/E5/Mh2O4e/oa1/jW0eaBKTSy3LaCj+M3Bqvm97GWDp2yUtzIs4LEn65zR2yiYGFqb2ApnzDA==", "shasum": "a7634dc08f89209c2049adda3525711fb97265dd", "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.0.tgz", "fileCount": 4, "unpackedSize": 13630, "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" }, "maintainers": [ { "name": "d10", "email": "demoneaux@gmail.com" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/regjsgen_0.5.0_1540608114803_0.0388782175432143" }, "_hasShrinkwrap": false }, "0.5.1": { "name": "regjsgen", "version": "0.5.1", "description": "Generate regular expressions from regjsparser’s AST.", "homepage": "https://github.com/bnjmnt4n/regjsgen", "main": "regjsgen.js", "keywords": [ "ast", "generate", "regex", "regexp", "regular expressions" ], "license": "MIT", "author": { "name": "Benjamin Tan", "url": "https://bnjmnt4n.now.sh/" }, "repository": { "type": "git", "url": "git+https://github.com/bnjmnt4n/regjsgen.git" }, "bugs": { "url": "https://github.com/bnjmnt4n/regjsgen/issues" }, "scripts": { "test": "node tests/tests.js", "coverage": "nyc --reporter=html npm test", "update-fixtures": "node tests/update-fixtures.js" }, "devDependencies": { "codecov": "^3.6.1", "nyc": "^14.1.1", "regjsparser": "~0.6.0", "request": "^2.88.0" }, "gitHead": "32eb43d493f81420feb1a7c47c1198d337b6ffdb", "_id": "regjsgen@0.5.1", "_npmVersion": "6.4.1", "_nodeVersion": "10.15.1", "_npmUser": { "name": "d10", "email": "demoneaux@gmail.com" }, "dist": { "integrity": "sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg==", "shasum": "48f0bf1a5ea205196929c0d9798b42d1ed98443c", "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.1.tgz", "fileCount": 4, "unpackedSize": 13772, "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" }, "maintainers": [ { "name": "d10", "email": "demoneaux@gmail.com" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/regjsgen_0.5.1_1571560308140_0.011090244139019267" }, "_hasShrinkwrap": false }, "0.5.2": { "name": "regjsgen", "version": "0.5.2", "description": "Generate regular expressions from regjsparser’s AST.", "homepage": "https://github.com/bnjmnt4n/regjsgen", "main": "regjsgen.js", "keywords": [ "ast", "generate", "regex", "regexp", "regular expressions" ], "license": "MIT", "author": { "name": "Benjamin Tan", "url": "https://ofcr.se/" }, "repository": { "type": "git", "url": "git+https://github.com/bnjmnt4n/regjsgen.git" }, "bugs": { "url": "https://github.com/bnjmnt4n/regjsgen/issues" }, "scripts": { "test": "node tests/tests.js", "coverage": "nyc --reporter=html npm test", "report-coverage": "nyc --reporter=lcov npm test && codecov", "update-fixtures": "node tests/update-fixtures.js" }, "devDependencies": { "codecov": "^3.7.0", "nyc": "^15.0.1", "regjsparser": "~0.6.4", "request": "^2.88.2" }, "gitHead": "813c5d1f28c1fa4be3abcafaaf3240d28b8145f6", "_id": "regjsgen@0.5.2", "_nodeVersion": "12.16.2", "_npmVersion": "6.14.4", "_npmUser": { "name": "d10", "email": "demoneaux@gmail.com" }, "dist": { "integrity": "sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==", "shasum": "92ff295fb1deecbf6ecdab2543d207e91aa33733", "tarball": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.2.tgz", "fileCount": 4, "unpackedSize": 14331, "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" }, "maintainers": [ { "name": "d10", "email": "demoneaux@gmail.com" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/regjsgen_0.5.2_1590334070278_0.09375785063276543" }, "_hasShrinkwrap": false } }, "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.
\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", "maintainers": [ { "email": "demoneaux@gmail.com", "name": "bnjmnt4n" } ], "time": { "modified": "2020-08-13T16:07:05.214Z", "created": "2014-07-01T07:27:00.362Z", "0.1.0": "2014-07-01T07:27:00.362Z", "0.1.1": "2014-07-09T09:15:23.663Z", "0.1.2": "2014-08-24T04:00:41.014Z", "0.2.0": "2014-09-02T04:32:12.545Z", "0.3.0": "2016-06-01T09:38:45.706Z", "0.4.0": "2018-01-17T12:34:24.541Z", "0.5.0": "2018-10-27T02:41:55.238Z", "0.5.1": "2019-10-20T08:31:48.247Z", "0.5.2": "2020-05-24T15:27:50.436Z" }, "homepage": "https://github.com/bnjmnt4n/regjsgen", "repository": { "type": "git", "url": "git+https://github.com/bnjmnt4n/regjsgen.git" }, "author": { "name": "Benjamin Tan", "url": "https://ofcr.se/" }, "bugs": { "url": "https://github.com/bnjmnt4n/regjsgen/issues" }, "license": "MIT", "readmeFilename": "README.md", "keywords": [ "ast", "generate", "regex", "regexp", "regular expressions" ], "users": { "amobiz": true } }