0.0.1 • Published 10 years ago

domainize v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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