node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

ot-domains-helper

ot-domains-helper

Build Status NPM version Dependencies

Helper methods for dealing with domainIds

installation:

npm install ot-domains-helper

usage:

var domains = require('ot-domains-helper');
 
console.log(domains.mapToId('couk'));
// 70
 
console.log(domains.mapToCode(70));
// couk
 

Running tests

npm install
npm test