url-es3
v0.10.3
Published
The core `url` packaged standalone for use with Browserify.
Downloads
4
Readme
node-url
This module is a fork of defunctzombie/node-url, but built for ES3 support.
The upstream module itself is a Browserify stand-in for the node built-in url
.
API
See the docs for the upstream npm module or node built-in.
Installation
Option A - for node + browser support
Install as a development dependency alongside browserify itself. And then configure Browserify to load url-es3
in place of url
.
This enables your code to use the node built-in url
when running on node, but Browserify will substitute url-es3
when running in the browser.
Install as dev dependency
npm install --save-dev url-es3
Configure browserify substitution in
package.json
browser: { "url": "url-es3" }
Require as
url
var url = require('url');
Option B - for browser only (or intending to use url-es3 directly)
Install as production dependency
npm install --save url-es3
Require directly
var url = require('url-es3');