url3
v1.0.0
Published
Modular version of node.js url package
Downloads
25
Readme
url3
Modular and environment agnostic version of node.js url package
Works same way as Node's url
but provides individual functionalities as following distinct modules:
url3/format
url3/parse
url3/resolve
url3/resolve-object
Additionally format
accepts only objects. So if you want to clean up potentially wonky url, you need to format(parse(url))
. Same way parse
, resolve
and resolveObject
accept only strings as input arguments
Installation
NPM
In your project path:
$ npm install url3
To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: Browserify, Webmake or Webpack
Tests
$ npm test