domainize
v0.0.1
Published
convert a name to and from reverse dns
Downloads
7
Readme
domainize
Installation
$ npm install domainize
Usage
var domainize = require('domainize')
Tests
$ npm test
Coverage
$ npm run cover
API
domainize(name, domain)
Create a reverse dns string from the given name
Example
var test1 = domainize('test', 'com.evan')
// 'com.evan.test'
domainize.to(name, domain)
See above
domainize.from(str)
Simply pops off the last component of the given str
Example
var test1 = domainize('test', 'com.evan')
var orig = domainize.from(test1)
// => 'test'
License
MIT