$ cnpm install parse-uri
Lightweight module for parse an URI. Based in Steven Levithan method.
$ npm install parse-uri --save
If you want to use in the browser (powered by Browserify):
$ bower install parse-uri --save
and later link in your HTML:
<script src="bower_components/parse-uri/dist/parse-uri.js"></script>
var parseUri = require('parse-uri')
parseUri('myURL')
MIT © Kiko Beats
Copyright 2013 - present © cnpmjs.org