Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 697 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 697 Bytes

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