{"name":"babel-plugin-transform-regexp-constructors","version":"0.5.0-alpha.7195fa98","description":"This changes RegExp constructors into literals if the RegExp arguments are strings.","keywords":["babel-plugin"],"homepage":"https://github.com/babel/minify#readme","bugs":{"url":"https://github.com/babel/minify/issues"},"license":"MIT","author":{"name":"shinew"},"main":"lib/index.js","repository":{"type":"git","url":"https://github.com/babel/minify/tree/master/packages/babel-plugin-transform-regexp-constructors"},"readmeFilename":"README.md","readme":"# babel-plugin-transform-regexp-constructors\n\nThis changes RegExp constructors into literals if the RegExp arguments are strings.\n\n## Example\n\n**In**\n\n```javascript\nconst foo = 'ab+';\nvar a = new RegExp(foo+'c', 'i');\n```\n\n**Out**\n\n```javascript\nconst foo = 'ab+';\nvar a = /ab+c/i;\n```\n\n## Installation\n\n```sh\nnpm install babel-plugin-transform-regexp-constructors --save-dev\n```\n\n## Usage\n\n### Via `.babelrc` (Recommended)\n\n**.babelrc**\n\n```json\n{\n  \"plugins\": [\"transform-regexp-constructors\"]\n}\n```\n\n### Via CLI\n\n```sh\nbabel --plugins transform-regexp-constructors script.js\n```\n\n### Via Node API\n\n```javascript\nrequire(\"@babel/core\").transform(\"code\", {\n  plugins: [\"transform-regexp-constructors\"]\n});\n```\n","_id":"babel-plugin-transform-regexp-constructors@0.5.0-alpha.7195fa98","dist":{"shasum":"150a49c15eb8c119b80201e40eda8de98aea7e7b","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-regexp-constructors/download/babel-plugin-transform-regexp-constructors-0.5.0-alpha.7195fa98.tgz","fileCount":5,"unpackedSize":2631,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/HuWCRA9TVsSAnZWagAA234P/jJValxkTf7KVo0zc3Ye\nr5lmzpjo+zJI7I2JtJvUCwZP5KobRItamrgrjA0DzlyDTWS2YmJBww6McwnU\nr7wVbg/wMMuVbZCp43iw8YNT+GxyPVihvqtoBJC03zEbBKXIh4nwxvpiJXjk\nDR2xlmL3qIU3ONeta0nfrNMFU5/OLnsKjUPjRvU5nlQo/OKOlTRiAKZSUurs\ntcZyN2JsF3iCakq8laIIPkwAtfqE2/PxuOER5N6qZ91DWQviLZqUJont73Qs\nqyrdbJq/R0crLPLWjWxW/NRJ8RhLFkZOPusXJbI4FIll/hjVYglFIQaK1pdd\nbgOVFJQ8xvTuZ/Qbo9T9Ga2ryoxZqFfXcy2uykrGWqNvdjgXdpAAlwFDX+Qt\nE6qugdDNKCx6Aw3wyqjQfFoIuhJkhvIYxfclauQG0aL65F3GHZ5XXbjKzdnX\nsw4Se8BpYWNTq3YRn8IJYEfglGYLZ/2UDJsvE0U0HzemCK51XyEcNxDq7I7s\nVZOIbE3HyngWnqjWXwn+FNLZyuWii8cBwKeRr1iYpzYvgUNQYnWk2iCrL1Jw\nDzNvmk4mxX66+DknDgH8UACc+8fM9lbzV7lrEVy6W1sePB/jISa6UtliERdV\nhFLLyCfUt3FJvYM0h+Kp314kL8omm1r3jpbubzkNdtVSDQXBIqiG6MyW9ls7\n6oCJ\r\n=xZDe\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-5bo4wPTn1rUbUmyvKQp187t4x7qq95/AmoRjP9N3VOkT4P7FhJy1POSrhWpdQZGtzzlLuyY5VrkpebzXHHOnSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDjCZJwfJE1zlZPDgBxRoc/3n4nTStTsixdSrN7wZee4AiBXGmd+zj4LQ28dRLFEUNAi2wa1i3huoCwrN8nBDGFgUQ=="}],"size":1257,"noattachment":false,"key":"/babel-plugin-transform-regexp-constructors/-/babel-plugin-transform-regexp-constructors-0.5.0-alpha.7195fa98.tgz"},"maintainers":[{"email":"asciiguyfieri@gmail.com","name":"babeljs"},{"email":"me@boopathi.in","name":"boopathi"},{"email":"hi@henryzoo.com","name":"hzoo"},{"email":"loganfsmyth@gmail.com","name":"loganfsmyth"},{"email":"vignesh.shanmugam22@gmail.com","name":"vignesh.shanmugam"}],"_npmUser":{"name":"babeljs","email":"asciiguyfieri@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-regexp-constructors_0.5.0-alpha.7195fa98_1526496150414_0.39665522244635376"},"_hasShrinkwrap":false,"publish_time":1526496150490,"_cnpm_publish_time":1526496150490,"dist-tags":{"canary":"0.5.0-alpha.9","latest":"0.4.3","prerelease":"0.0.3"}}