{"name":"babel-plugin-transform-regexp-constructors","version":"0.5.0-alpha.830ce3f1","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.830ce3f1","dist":{"shasum":"428eb3dd4b446f703cc0ba7745420a7548ce4a23","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-regexp-constructors/download/babel-plugin-transform-regexp-constructors-0.5.0-alpha.830ce3f1.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/af+CRA9TVsSAnZWagAAeZUQAJfhRKSNxdgLtl1UdSy7\n9h+Wq8zB6biZ8A5xPXw29QaAnYrinjqDnCEKO2tnjBbqKj3+srb5+jAD5sr7\nCHkRHDZFdYfGBOeajWF0N7pk+xBsjN3jviwDxzIAKcisQK9EPHP2a3tFYFeK\nvuBvxzb+CclQNuveTi9+EJZAuC1TTyv5NSiTYhzGlAwM9TOwlK55N0tRHsd/\n6Fmm32Ix3AFXchhFUPseEt19TWYrh2uQl8Q4McQAIpHDeyXhix4w46ARWccM\n7WezKwLmXPLGL5cdUw1nlj6fEiZybtsqoAiHdYaYcjnWyYoq74qb2chV3kWf\n2bi1gDCKHq3UVBTB0piJo2s/6vz2P4PHZwlFM/04HuBpxhU08whmIjutWanw\nlqJ8a/GRHCkjBmQIkIQSe7EXOfiZ3HiremUVwdjDnELu1bi5i5RhcZiDBVvL\np4gaAciZvuLohXxOqzLSJFRnHvJr0XxyLGDvQOu4TL9wSg2X80debLwaAAv4\nIuMfMZsklJwUoeCtt2ZNqwvJcdi+EU1LdMFrpni+AuH7JhjqIyWEsjI9iGLi\niciEkwCX2GoSb+OQS8q/J8FVpjTKscyVEbgcQRNvrKMnmPILC6R1/6H7oKXb\nD+awqfIhz5XZuB2xRRMcbBuUyTRsGDtUjEozhBIZt9vV5Ee7CDKi/m53SZv3\nksso\r\n=1x72\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-Z5tpRuoJKS4DlcpmRy/JuKiq+5eTaL8FDDX61UwiyXhaOFCvbmOVMc2XOCH7fxYoe9mv36kJudczrSsV/Brnjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUWvibYFEdQuvtVjVgyvIXZSfFDYPO3mDetRGqBDB7nAiAOD2tJnJN91M/4CsV6zGJwdknK/26eGAM+9le6vPY0Yg=="}],"size":1258,"noattachment":false,"key":"/babel-plugin-transform-regexp-constructors/-/babel-plugin-transform-regexp-constructors-0.5.0-alpha.830ce3f1.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.830ce3f1_1526573053470_0.4522283503097908"},"_hasShrinkwrap":false,"publish_time":1526573053559,"_cnpm_publish_time":1526573053559,"dist-tags":{"canary":"0.5.0-alpha.9","latest":"0.4.3","prerelease":"0.0.3"}}