5.1.0 • Published 6 years ago

node-parse-url v5.1.0

Weekly downloads
28
License
MTI
Repository
github
Last release
6 years ago

node-parse-url

npm

Take a URL string, and return an object. Extend from native url module

Installation

Global

npm install node-parse-url

Usage

var parseUrl = require('node-parse-url');

var url = parseUrl('https://github.com/aredo');

console.log(url);

// output

// { 
//   protocol: 'https:',
//   host: 'github',
//   port: null,
//   hostname: 'github.com',
//   path: '/aredo',
//   subdomain: null,
//   tld: 'com',
//   domain: 'github.com' 
// }

License

(The MIT License)

5.1.0

6 years ago

5.0.0

6 years ago

4.0.0

6 years ago

3.0.0

7 years ago

2.0.0

7 years ago

1.0.0

9 years ago

0.1.1

10 years ago

0.1.0

10 years ago