{"name":"babel-plugin-transform-regexp-constructors","version":"0.5.0-alpha.9e447f6d","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.9e447f6d","dist":{"shasum":"9cc1675ea863d32ff9996ef6a3329fc29eb6c5dc","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-regexp-constructors/download/babel-plugin-transform-regexp-constructors-0.5.0-alpha.9e447f6d.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/adNCRA9TVsSAnZWagAAvWkP/iH0b68cbd1YRDfo3UAW\nd3BzQZ4zjyq63SqlCyupdE0BcG7G0NfaINBezq6plD/U8GIJsPqfgDFZkX8F\nAM689g73pC70AHL3uEHTBUdqTGVVNmFiMQJO7+91GIsfb8leMltGcvQZZIXc\n69NsTbYh7BToSXczSRwjj3RVKXHYAlqllETpvJcvBPwki20YFtoVAqMbPwmd\n8vzj7gGBahqlFE7KH1Tn7bTZar+3VVcrZEIOCU/gEmhoXVwuVdzNTrKYucMV\nOdAhbcKy66RmRfCvQ8U6tiwnkp2rP0WGYn7BnvE1b4b9JKgKqDRkXKuyLL01\nNuESaA9b8/6TvRfdYdM2LIRxq7+LDHJ7c5lop0CzuY+UkfhRrR3EX72AXdmV\niRK0wLpNfYEVZNR3J8m05HRUX9KLy0TiJKKEbVIjdWrv6mtzv2D8bhyLTRYw\naZ6kOoeaTl+yWjIZw7FCQicGTfdfPKP3kM3zgtZZzKadx8aijqZNgx22rNsw\n9SPSPOQ87KdX29gIbvgSWmzM7Cm57JA8LegWRZoEHbjuamYvsPW/rFCo+8kO\n03LH5/WVBifwYbfQ+kIbv6rFs11cVtrnzi4siRKKZwr6P5NOy1S+ZBxc+wbs\nWUVJfRDfu44d/u/I4o+y01lm+shA2JyCjC87SfN/LpAt2sNw0RVTY2GEGu8k\nIcDn\r\n=CFEH\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-GhSGoa5ieqM80sFENIqBB+KKTedTEsAj5HHB3TLWGah7Y6S9OlePw73fvG1P5iswlCPmE0wWUUNhKaIaZhrTjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFo+evUpRqVxALo78MDBp2woQCzMp5wd6AYCfdts83FJAiAzP7+5oEjXolJDHzAejNDMTWXT5BC5r8M3XA6c7O+DuQ=="}],"size":1258,"noattachment":false,"key":"/babel-plugin-transform-regexp-constructors/-/babel-plugin-transform-regexp-constructors-0.5.0-alpha.9e447f6d.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.9e447f6d_1526572876983_0.5948018070619105"},"_hasShrinkwrap":false,"publish_time":1526572877066,"_cnpm_publish_time":1526572877066,"dist-tags":{"canary":"0.5.0-alpha.9","latest":"0.4.3","prerelease":"0.0.3"}}