Package Exports
- reserved-email-addresses-list
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (reserved-email-addresses-list) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
reserved-email-addresses-list
List of 1250+ email addresses reserved for security concerns
Table of Contents
Install
npm:
npm install reserved-email-addresses-list
yarn:
yarn add reserved-email-addresses-list
Usage
The string you are comparing with must be converted to lowercase, trimmed of whitespace, and strictly converted to alphanumeric characters only.
It is also highly recommended that you check for strict equality, starts with, and ends with comparisons as well.
const reservedEmailAddressesList = require('reserved-email-addresses-list');
const str = 'Admin***!!!'.toLowerCase().replace(/[^0-9a-z]/g, '');
const match = reservedEmailAddresssesList.find(addr => addr === str || str.startsWith(addr) || str.endsWith(addr)))
if (match) throw new Error(`${str} matched a reserved email address of ${match}`);
List
See index.json for the complete list of all reserved email addresses.
References
- https://webmasters.stackexchange.com/questions/104811/is-there-any-list-of-email-addresses-reserved-because-of-security-concerns-for-a?noredirect=1&lq=1
- https://support.google.com/a/answer/6093413?hl=en
- https://docs.google.com/spreadsheets/d/1Gj1LidTJgA1TgOjhxTaoQKaZTvV2-xZlvo9XEsBnZ5I/edit#gid=0
- https://gist.github.com/riaf/9067235
- https://gist.github.com/citrusui/d755cf6bf8374d413fe8f453fa40f0c6
- https://www.npmjs.com/package/reserved-usernames
- https://help.salesforce.com/articleView?id=pardot_admin_role_based_email_address.htm&type=5
Contributors
Name | Website |
---|---|
Nick Baugh | http://niftylettuce.com/ |