0.1.2 • Published 10 years ago

domain.js v0.1.2

Weekly downloads
6,759
License
MIT
Repository
github
Last release
10 years ago

domain.js

get the domain from an url

installation

for component:

$ component install ramitos/domain.js

for node.js:

$ npm install domain.js

usage

with string url:

var domain = require('domain.js')

domain('http://www.example.co.uk') //=> example.co.uk

with parsed url:

var domain = require('domain.js'),
    url = require('url')

domain(url.parse('http://www.example.co.uk')) //=> example.co.uk

test Build Status

$ npm test

credits

license

MIT

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.2

11 years ago

0.0.1

12 years ago