JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 176
  • Score
    100M100P100Q97522F
  • License MIT

List of 1250+ email addresses reserved for security concerns

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

build status code coverage code style styled with prettier made with lass license npm downloads

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, and for a list of admin-related usernames, you should check for strict equality, starts with, or ends with comparisons as well.

const reservedEmailAddressesList = require('reserved-email-addresses-list');
const reservedAdminList = require('reserved-email-addresses-list/admin-list.json');

const str = 'Admin***!!!'.toLowerCase().replace(/[^0-9a-z]/g, '');

let reservedMatch = reservedEmailAddressesList.find(addr => addr === str);

if (!reservedMatch)
  reservedMatch = reservedAdminList.find(
    addr => addr === str || str.startsWith(addr) || str.endsWith(addr)
  );

if (reservedMatch)
  throw new Error(
    `User must be a domain admin to create an alias with a reserved word (see the page on <a target="_blank" rel="noopener" href="${config.urls.web}/reserved-email-addresses">Reserved Email Addresses</a>).`
  );

if (reservedMatch)
  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

Contributors

Name Website
Nick Baugh http://niftylettuce.com/

License

MIT © Nick Baugh