{"name":"babel-plugin-transform-regexp-constructors","version":"0.4.0-alpha.12994a48","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"},"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\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","readmeFilename":"README.md","_id":"babel-plugin-transform-regexp-constructors@0.4.0-alpha.12994a48","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"babeljs","email":"asciiguyfieri@gmail.com"},"dist":{"integrity":"sha512-yA/YWjsSxyK3mwSVlsfS30rCyFE67T6PFK9zcjPWpCosRGzmQ/Vs06j71OSDcWOu03r6Xy8WJbRbkKZHepN1SA==","shasum":"e942fc8a3a4528ba1d3bb053670ddee5b08152a5","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-regexp-constructors/download/babel-plugin-transform-regexp-constructors-0.4.0-alpha.12994a48.tgz","fileCount":3,"unpackedSize":2667,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCy6+xZwteIXz0r04EY+VV+F9EiRlkoaf02LKyZxi2/wgIgISa9tEQfLqiCyy3BMbWiA6etTB5d4GScUgHBEqcwRVc="}],"size":1204,"noattachment":false,"key":"/babel-plugin-transform-regexp-constructors/-/babel-plugin-transform-regexp-constructors-0.4.0-alpha.12994a48.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"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-transform-regexp-constructors_0.4.0-alpha.12994a48_1519644247805_0.10967887757840411"},"_hasShrinkwrap":false,"publish_time":1519644247936,"_cnpm_publish_time":1519644247936,"dist-tags":{"canary":"0.5.0-alpha.9","latest":"0.4.3","prerelease":"0.0.3"}}