Skip to content

Util to mark as reserved a a list of words / Blacklisting subdomain ala Slack

License

Notifications You must be signed in to change notification settings

prenaudin/reservify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reservify

Manage a list of reserved words Mostly used to blacklist reserved subdomains (à la Slack, e.g. http://apple.acme.com or http://wiki.acme.com)

Install

npm install reservify --save

Usage examples

Example
var reservify = require('reservify')();

// Modifiy reserved words or companies.
reservify
  .add('slite')       // Add a reserved word
  .remove('weather')  // Remove a reserved word

console.log(reservify.test('wiki'));  // true
console.log(reservify.test('apple'));  // true
console.log(reservify.test('saucette'));  // false

License

MIT

About

Util to mark as reserved a a list of words / Blacklisting subdomain ala Slack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published