url-es3

0.10.3 • Public • Published

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.

  1. Install as dev dependency

    npm install --save-dev url-es3
  2. Configure browserify substitution in package.json

    browser: {
      "url": "url-es3"
    }
  3. Require as url

    var url = require('url');

Option B - for browser only (or intending to use url-es3 directly)

  1. Install as production dependency

    npm install --save url-es3
  2. Require directly

    var url = require('url-es3');

Readme

Keywords

none

Package Sidebar

Install

npm i url-es3

Weekly Downloads

0

Version

0.10.3

License

MIT

Last publish

Collaborators

  • jasonkarns