{"maintainers":[{"name":"d10","email":"demoneaux@gmail.com"}],"keywords":["ast","generate","regex","regexp","regular expressions"],"dist-tags":{"latest":"0.3.0"},"author":{"name":"Benjamin Tan","url":"https://demoneaux.github.io/"},"description":"Generate regular expressions from regjsparser’s AST.","readme":"# regjsgen [![Build status](https://travis-ci.org/demoneaux/regjsgen.svg?branch=master)](https://travis-ci.org/demoneaux/regjsgen) [![Code coverage status](https://coveralls.io/repos/github/demoneaux/regjsgen/badge.svg)](https://coveralls.io/github/demoneaux/regjsgen?branch=master)\r\n\r\nGenerate regular expressions from [regjsparser](https://github.com/jviereck/regjsparser)’s AST.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install --save regjsgen\r\n```\r\n\r\n## API\r\n\r\n### `regjsgen.generate(ast)`\r\n\r\nThis function accepts an abstract syntax tree representing a regular expression, and returns the generated regular expression string.\r\n\r\n```js\r\nvar regjsparser = require('regjsparser');\r\nvar regjsgen = require('regjsgen');\r\n\r\n// Generate an AST with `regjsparser`.\r\nvar ast = regjsparser.parse(regex);\r\n\r\n// Modify AST\r\n// …\r\n\r\n// Generate `RegExp` string with `regjsgen`.\r\nregex = regjsgen.generate(ast);\r\n```\r\n\r\n## Support\r\n\r\nTested in Node.js 0.10.x, 0.12.x, 4.x and 5.x.\r\n\r\n## Author\r\n\r\n| [![twitter/demoneaux](https://gravatar.com/avatar/029b19dba521584d83398ada3ecf6131?s=70)](https://twitter.com/demoneaux \"Follow @demoneaux on Twitter\") |\r\n|---|\r\n| [Benjamin Tan](https://demoneaux.github.io/) |\r\n\r\n## Contributors\r\n\r\n| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias \"Follow @mathias on Twitter\") |\r\n|---|\r\n| [Mathias Bynens](https://mathiasbynens.be/) |\r\n","repository":{"type":"git","url":"git+https://github.com/demoneaux/regjsgen.git"},"users":{"amobiz":true},"bugs":{"url":"https://github.com/demoneaux/regjsgen/issues"},"license":"MIT","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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":{}}},"name":"regjsgen","time":{"modified":"2016-06-01T09:38:45.706Z","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"},"readmeFilename":"README.md","homepage":"https://github.com/demoneaux/regjsgen"}