{"versions":{"1.0.0":{"name":"email-regex","version":"1.0.0","description":"Regular expression for matching email addresses","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/email-regex"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["text","string","regex","regexp","re","match","test","find","pattern","validate","email","address"],"devDependencies":{"ava":"0.0.4"},"bugs":{"url":"https://github.com/sindresorhus/email-regex/issues"},"homepage":"https://github.com/sindresorhus/email-regex","_id":"email-regex@1.0.0","_shasum":"16c08f1fa8310907090127430a68562728bd029b","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"16c08f1fa8310907090127430a68562728bd029b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/email-regex/-/email-regex-1.0.0.tgz","integrity":"sha512-uy8N0uKTXkn6BusvlyHAFGyHKz7WERirdlK8ddYuNh3HmqVYx/j61kN2eH8TB/EGhTanZAvaJ05t0k/29nMoPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDK9uvrecK/ap7Axl6mzBO2WRqW6RU/+rncDmxost+aCgIgDCDe1BjNVx9QcugC5llz7Q4CsOdzZmrJNPlHX1yeCqY="}]},"directories":{},"contributors":[]},"2.0.0":{"name":"email-regex","version":"2.0.0","description":"Regular expression for matching email addresses","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/email-regex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["text","string","regex","regexp","re","match","test","find","pattern","validate","email","address"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"b754d606edff8c596ecb59dd92b86e27ef6c10be","bugs":{"url":"https://github.com/sindresorhus/email-regex/issues"},"homepage":"https://github.com/sindresorhus/email-regex#readme","_id":"email-regex@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-tU2gKTihodCvBCfxP5zMW1otxPjgKpM+YFplBKeisfsnMltkCEUU3mdcU667AZmLEO45OswgKEEqg0YPeH31eg==","shasum":"df1cd754ea7c42f8d6eaabcb1288041ec4696c22","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/email-regex/-/email-regex-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEcsy5c/wkNApCNixuUWjtAat9OjF+tGOiRL14tYBERMAiBmFe+KFHsC7G0UmmxdqlVxfbXLYKCpovdT2sS0VR0uUQ=="}]},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/email-regex-2.0.0.tgz_1510144439776_0.7334001704584807"},"directories":{},"contributors":[]},"3.0.0":{"name":"email-regex","version":"3.0.0","description":"Regular expression for matching email addresses","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/email-regex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["text","string","regex","regexp","re","match","test","find","pattern","validate","email","address"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"a0f071b351f82950b80614222f27864691a32da1","bugs":{"url":"https://github.com/sindresorhus/email-regex/issues"},"homepage":"https://github.com/sindresorhus/email-regex#readme","_id":"email-regex@3.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-5FxVen6tUcRJFHpFnW8jMMP4W7tP/xAaYIshi8ia72KMjmRJIwRvTZjWvJYd3qO6W7urOe4DmdbkNB2LkAs8JQ==","shasum":"60124ad22db6660c94e9f7e04d246b588b9440a8","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/email-regex/-/email-regex-3.0.0.tgz","fileCount":4,"unpackedSize":3110,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbClnoCRA9TVsSAnZWagAAzS4P/2OYCl2x9jUHS2S2iB3R\nUyvkvxnC0HeffP7wZ6+3LO5QkT8CEZUlvi5QEFuwCJ0y8Z1OUtpppSc8STK/\nEoEXR+ACAS8H/ws9ktJuCeBuqi8iQULR82FlDkl+UUDQoAEtbFKrF9/+BI/f\nCmqO6Hd23WrfwW0KW4KtHyFxGktWeKHYpKwX/2azG9TZPalCSDn3zH2F5aSQ\nUX3jwqboMAvc1TOZo2RGSrJjkZXpyZbogcEWkU7IvBYHztKiSj4RbhiPBGqw\nuJ0IokflGXJAlPFsFqUYSlQkn4hZ3OULwP5eKunyTAN8GvqL6quWD9xFpguc\nU2e4rzqH4YKNryavRi+8QOK8ZWjaR62bfOqvuv3V2GboZyXpyWmBSTQQiI/b\nSDmsyuVRxO+Ejf6UxZ85hNoydbnWh+cS5Gi1fQlwr2xTpABz9QNtTMZ/w2x1\nY2gInfSucj3XkVCkyHV5Kg5RqKbWjFFXAHkOGX6yM62BEiQZx1ahjzJ7bHHJ\nWdpgjT0KS9GfegyTguBJcWazkPf0xmTjytcQf4BgwUieJHYiqLLro7mf3IGG\nwU8eOU3Ho1ycJ7TDvYaclBsWG10xCKyzHzYd+p+Cprdxng8otgeykzc58+s9\nHgudQR47Ace47PVAfukZULkxxCG1sfPH8AV6vTWd0PnrqzxR3V+R4QWMjbf/\na/by\r\n=ONVm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaUSyeKcuhMeePHz0VhEW8YaD7UYqjuNBu29wifmmf8QIgU1W6TjKeqT+/r/PBdPaq6MFm2oSYZMH4DfxY7LN4UOc="}]},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/email-regex_3.0.0_1527405031831_0.434302509422835"},"_hasShrinkwrap":false,"contributors":[]},"4.0.0":{"name":"email-regex","version":"4.0.0","description":"Regular expression for matching email addresses","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/email-regex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["email","address","regex","regexp","string","match","text","test","find","pattern","validate"],"devDependencies":{"ava":"^2.1.0","tsd":"^0.7.3","xo":"^0.24.0"},"gitHead":"7f2e69f761f3221999cea0bf9e1ec8a74e563063","bugs":{"url":"https://github.com/sindresorhus/email-regex/issues"},"homepage":"https://github.com/sindresorhus/email-regex#readme","_id":"email-regex@4.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-OxR2NqoYS3ZikqOkju2krRTyxngwjJ5Wh4yalpTqbBnUOr+LLwwjY2x5Sksruw6TieyQDswE5Pc83Eh6RQj3GA==","shasum":"3a86bc66afaebb6de2f7eb1251133062c4c8c3d5","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/email-regex/-/email-regex-4.0.0.tgz","fileCount":5,"unpackedSize":4075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdF7QPCRA9TVsSAnZWagAAW1QP/RfG55q7lqM3bDOQOhQU\nP79BMhn2DBPW00CG/h3fjaDkGSg5asIyjyqtiTWYzu0owVOQZjmTrybsYanF\n7aw783np7jw2f9DA9JfBchBSLgfhfezc8Mx3WzPyk9peT9fORphh8wm8N+CH\ncq9ZDXB+5/FAHltcXjST/Frxnsgty86K677Bvll+tStGW36aGDqIkwpSNUmO\nJp71YQi9KGu/8C66IZ1jYAzAQAjcYCU9pw09uGWmhSvLbfv3J2cYfsN91ybF\nAS9PbpZudWXFVZ2HR8+mUMZbh1sX82uZ8SPoTxq52A1HlCLKpUIyruJyOtuh\nKjq8fPzLkk2OXtS6VXBwuVCu9r4BTSdH/SVYdeyTQWH5RorgWT5GfEApUZCt\n7Oy+GwsqaOe2Lm4ZVSjxcxnEkhUZC981kkWoJwvXq/ElQSH3aERZuXjeegJI\nseh16ZB9QFSlEBJ6KALdnhZkeY9pyCQpJeYpvGUHDe2veGLn8hlARE8f4t98\n91/MFNO2hj6fEmo/krKs1vM3kKjtjzUyAzHxTLrY6jqgKOVk1m44GJfxCVBG\n3PsTnNX/uMKvYicVuyFFh9F5KV03IupLRM4b7EVCcg3tpI7qWCQO7Dc5U8z5\nboqdtbcI0x3+AfmhrLxEBwOGjasGugxLx7+cNgrPKxPwXxSKY3lDaSpSkdFw\npljT\r\n=uInL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2vo+9VxrLmcGTuEkMQZoi0qtoaf+sBH8ALxKX36mdRwIhALnMVgMNz92VGCcrktdz9DBO+UIqfXZMkCTupgFFLL7K"}]},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/email-regex_4.0.0_1561834510556_0.5667128358021434"},"_hasShrinkwrap":false,"contributors":[]},"5.0.0":{"name":"email-regex","version":"5.0.0","description":"Regular expression for matching email addresses","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/email-regex.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["email","address","regex","regexp","string","match","text","test","find","pattern","validate"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"17f3cbc4bf5c88e90f8c86f9e9d2fc4321308373","bugs":{"url":"https://github.com/sindresorhus/email-regex/issues"},"homepage":"https://github.com/sindresorhus/email-regex#readme","_id":"email-regex@5.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-he76Cm8JFxb6OGQHabLBPdsiStgPmJeAEhctmw0uhonUh1pCBsHpI6/rB62s2GNzjBb0YlhIcF/1l9Lp5AfH0Q==","shasum":"c8b1f4c7f251929b53586a7a3891da09c8dea26d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/email-regex/-/email-regex-5.0.0.tgz","fileCount":5,"unpackedSize":3998,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkAuTCRA9TVsSAnZWagAAWXoQAJ7nmx/U3M5Ryh25tFbG\noNuBT/xRISSquNRIIIKOzDX817FqOc6VdqaOgfTyixw7QRjiE4CTErVyTKHz\nWSdAaNqdcJ5xdd7uXNj/XEmusRsHo2tIN1iZl0a5J2VFGgjAwOJREJcQPCoH\nou/EN8N9e4sw0Y9fsQ0ZA8xyUcSoVWAh6ERHqg1TBwHTPFcfPv5jPv+zF4aj\n1dvX4Dgds6oxcQsNAZkOFboItWb0OtTzlrYFyFBjEd8M45o1M3ni7OTcUj+O\nxoZptpL1HW6StG86LwBVfxBgNkRa0IVHP9G4UX/HisuC7pM5fZyUrTwVxqww\nLNCNCxV7GvF5067T8JJxFd0zhYebU/ppyf8O3292SC+j1xLhYvJjn6e4jCWo\nhm6VANxP/3Kbsw4vp4fiz46DpNlD+ri/f+dFOXD4jVPnBoOex7RkjvzLYkn3\nSWDZ3yfzZGUhwExw9L9ciy+dNihEer65SD5ObgCGt5Cd4MaevrZyADNnndAm\n9f6pDEaYWs6q9SAlsxDiw5M9d2nbaCZ6egSEsVT1/SfLG0XuBUKXF0l/iwy3\n+1peP/0bwu+K1B4nNDRsUKUzCOA0BKv91i8iik/TYRUHg4IJGCbpsGLkyCvo\n3Q7YdZhqmdaGQDmweHge/JFaERN10Q87/jCJM8zdJbqXfkdTUNP6jOu0Dyg2\n7KlZ\r\n=A5Gd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0kJdasSMZ5L15/qzr4fk4yh04+ZwpJsYDHOTst1lo0wIgJMSbdsNoD2u/BYSWrci+1TyZ7vlPPhJGzLjeaEXCcgk="}]},"_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/email-regex_5.0.0_1620052882967_0.0922720650884945"},"_hasShrinkwrap":false,"contributors":[]},"6.0.0":{"name":"email-regex","version":"6.0.0","description":"Regular expression for matching email addresses","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/email-regex.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["email","address","regex","regexp","string","match","text","test","find","pattern","validate"],"devDependencies":{"ava":"^6.4.1","tsd":"^0.32.0","xo":"^1.2.1"},"_id":"email-regex@6.0.0","gitHead":"da115c9ed0b4b20fb0313acdeb7decb0741852f3","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/email-regex/issues"},"homepage":"https://github.com/sindresorhus/email-regex#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-7vlftWGQFSfole83C/mluWIz8LRPhaJFWExU6B7s/jYPdzD1QHC8LDqi/nRttTYRknuFhSYBqU8hC7NzrrbIYg==","shasum":"b27f6904f3b1d339dac0fcc55882d87674137d5e","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/email-regex/-/email-regex-6.0.0.tgz","fileCount":5,"unpackedSize":6912,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIA75cDA1CtS/zYpE5BYNHFMG7oJfX983hgJuFtt2/1ixAiEA+xdazAeMpAo7bxpBRj9zeStOSjcqiYwZDDO7qBrisVU="}],"size":2883},"_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/email-regex_6.0.0_1754327713618_0.17727467089953985"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-04T17:15:13.801Z","publish_time":1754327713801,"_source_registry_name":"default","contributors":[]},"6.1.0":{"name":"email-regex","version":"6.1.0","description":"Regular expression for matching email addresses","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/email-regex.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["email","address","regex","regexp","string","match","text","test","find","pattern","validate"],"devDependencies":{"ava":"^6.4.1","tsd":"^0.32.0","xo":"^1.2.1"},"_id":"email-regex@6.1.0","gitHead":"0967de8c7ebf27f30fa332fc251a9d2e00ba504b","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/email-regex/issues"},"homepage":"https://github.com/sindresorhus/email-regex#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-z8CjalGIdeho0mUe5rYJ2sjO3zV1Tt1Xi6T62koznflrzFfIiaPbqJDZ70Fy59ABQznrtcn7WCXS3RdaDsvE1w==","shasum":"4127c346ed87796af7570e5f9511c16ab05a4895","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/email-regex/-/email-regex-6.1.0.tgz","fileCount":5,"unpackedSize":6652,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICiOL9RYUms/k0t3Amq9CE4yWESRp33AGIGwBTkgGdnlAiEAvk53oRFQt2c1HOKbeMkNJ8bdzHuRSTVDM9zd0ilJ55Q="}],"size":2816},"_npmUser":{"name":"anonymous","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/email-regex_6.1.0_1755450544578_0.5402984928828185"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-17T17:09:04.787Z","publish_time":1755450544787,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"6.1.0"},"name":"email-regex","time":{"modified":"2025-08-17T17:09:19.751Z","created":"2022-01-26T20:53:40.918Z","1.0.0":"2014-09-07T09:52:32.662Z","2.0.0":"2017-11-08T12:33:59.835Z","3.0.0":"2018-05-27T07:10:31.921Z","4.0.0":"2019-06-29T18:55:10.680Z","5.0.0":"2021-05-03T14:41:23.135Z","6.0.0":"2025-08-04T17:15:13.801Z","6.1.0":"2025-08-17T17:09:04.787Z"},"readme":"# email-regex\n\n> Regular expression for matching email addresses\n\nUse it for finding email addresses or checking if something is email like.\n\n[You shouldn't use this for validating emails.](https://davidcel.is/articles/stop-validating-email-addresses-with-regex) Only for hinting to the user.\n\n## Install\n\n```sh\nnpm install email-regex\n```\n\n## Usage\n\n```js\nimport emailRegex from 'email-regex';\n\n// Contains an email address\nemailRegex().test('unicorn sindresorhus@gmail.com');\n//=> true\n\n// Is an email address\nemailRegex({exact: true}).test('sindresorhus@gmail.com');\n//=> true\n\n'unicorn sindresorhus@gmail.com cake john@doe.com rainbow'.match(emailRegex());\n//=> ['sindresorhus@gmail.com', 'john@doe.com']\n```\n\n## API\n\n### emailRegex(options?)\n\nReturns a regex for matching email addresses.\n\n#### options\n\nType: `object`\n\n##### exact\n\nType: `boolean`\\\nDefault: `false` *(Matches any email address in a string)*\n\nOnly match an exact string.\n\nUseful with `RegExp#test` to check if a string is an email address.\n\n##### allowSingleLabelDomain\n\nType: `boolean`\\\nDefault: `true`\n\nAllow emails with a domain that doesn't have a dot, such as `user@localhost` or `user@internal`.\n\n##### allowAmpersandEntity\n\nType: `boolean`\\\nDefault: `false`\n\nAllow the ampersand HTML entity `&amp;` to correspond to an ampersand `&` in the email address.\n\n## Important\n\nIf you run the regex against untrusted user input in a server context, you should [give it a timeout](https://github.com/sindresorhus/super-regex). It's also a good idea to limit the input to a reasonable length.\n\n**I do not consider [ReDoS](https://blog.yossarian.net/2022/12/28/ReDoS-vulnerabilities-and-misaligned-incentives) a valid vulnerability for this package.**","users":{}}