A list of names that should be reserved in multitenant apps.
npm install reserved-subdomainsA list of names that should be reserved in multitenant apps.
``bash`
$ npm install reserved-subdomains
- Properties
- names
- nameMap
- patterns
- patternsRegex
- Methods
- isNotValid(name)
- isValid(name)
#### names
An array of strings. Ex: ['www', 'ftp', 'mail', ...].
#### nameMap
An object where keys are names. Ex: { www: true, ftp: true, mail: true, ...}.
#### patterns
An array of regular expression strings. Ex: ['ww[a-z0-9-]+', 'ftp[0-9]+', 'mail[0-9]+', ...].
#### patternsRegex
An array of regular expression objects. Ex: [/ww[a-z0-9-]+/, /ftp[0-9]+/, /mail[0-9]+/, ...].
#### isNotValid(name)
Returns true if the name _is not_ valid where:
- name - the name to test.
#### isValid(name)
Returns true if the name _is_ valid where:
- name` - the name to test.
https://github.com/nkkollaw/reserved-subdomains
MIT