{"name":"babel-plugin-transform-regexp-constructors","version":"0.5.0-alpha.34c3efe9","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\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.34c3efe9","dist":{"shasum":"2c72d097f03558e1aad3105baa76d7fed320ac93","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-regexp-constructors/download/babel-plugin-transform-regexp-constructors-0.5.0-alpha.34c3efe9.tgz","fileCount":5,"unpackedSize":2620,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa66Z7CRA9TVsSAnZWagAAhT8QAKP0XG8oUTnZDSY714sa\ndvD548Y8rbsEsXyNTsWhTBAJv44mmmWFDzACPR4lNHIuJ5D0IcQq0iwwzHwb\nJ/bdW9CesVSmxuEw80t6zQTzoMQspb1vv/jyDbA1m41M/hm1yUpMgk5+fxnI\n4NhUVnm1U2svNn51f9/5DONs3L31GIICjxA18RelsFZPB41Z6pGpFm9xZSOp\nZbxVmrc5uRROh8iorbOrRXk6GFRQrP7qn2d+yTSSVlhu983j4K+qctkYVDFz\nj7V4q8hve1AvxoCundLYOqpG/4rUPm107KPCVldWdM1Yal9Pll06foCClXG1\nOFj81xwqwzATVqw8+YV1UB1uTTzdgTZvsW8NVEbg/lEGjeElDWl36EKRB1Cd\nwpv9f/VCSbA2QT7LeJEX4x9dWfDF6PIZPTZlM7iNLnHRyS3OOzabHKEqiFI+\nEhsB4eCd/Q4t/EPw+5oCXkqRJZRHGI+v4SHhC8bir8SPq/aOnTkY5qGMLDL9\nUoDaI26ywUbEO1bAW0R++cRPzpDD+yV+dTuAigo/ywZ8HPSNQQHc2wG6PCVB\n3/GKN9HoCXbsy1QiLGOeASkvfaDUK9Jy3pCu9rXam5AWoDsVii5P5qAQ1WEy\nTA+7UNc3R5MndYmB/VnXKmgpyAJJDuuzFQDroVPWDiwCvzhiHs4BUGLC7IxE\nsT15\r\n=skLA\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-BoYoqBk0/d9rDrrGbC4zUuAEf9kQMbsMdIa7+WFE8oQbR9Po+83llV6UxkeAnNl87HtQJUFoqndUaG/v6BIXyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICQHPmht8MJyUl8S6F4QDuluKeWnO0tTEssCy5otC0yEAiBopXI3Zq3/Ps8qeTKBlFbiczyoyO8lbauKQQ0WCVWUfg=="}],"size":1248,"noattachment":false,"key":"/babel-plugin-transform-regexp-constructors/-/babel-plugin-transform-regexp-constructors-0.5.0-alpha.34c3efe9.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.34c3efe9_1525393018617_0.7630846389445309"},"_hasShrinkwrap":false,"publish_time":1525393018932,"_cnpm_publish_time":1525393018932,"dist-tags":{"canary":"0.5.0-alpha.9","latest":"0.4.3","prerelease":"0.0.3"}}