domainize

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i domainize

Weekly Downloads

7

Version

0.0.1

License

MIT

Last publish

Collaborators

  • eh
  • evanlucas