A list of names that should be reserved in multitenant apps.
$ npm install reserved-subdomains
An array of strings. Ex: ['www', 'ftp', 'mail', ...]
.
An object where keys are names. Ex: { www: true, ftp: true, mail: true, ...}
.
An array of regular expression strings. Ex: ['ww[a-z0-9-]+', 'ftp[0-9]+', 'mail[0-9]+', ...]
.
An array of regular expression objects. Ex: [/ww[a-z0-9-]+/, /ftp[0-9]+/, /mail[0-9]+/, ...]
.
Returns true
if the name is not valid where:
name
- the name to test.
Returns true
if the name is valid where:
name
- the name to test.
https://github.com/nkkollaw/reserved-subdomains
MIT