🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

domainize

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

domainize

convert a name to and from reverse dns

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

reverse

FAQs

Package last updated on 02 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts