url-poly

1.0.4 • Public • Published

URL Poly

A polyfill for the URL web api.

Install

npm install url-poly

Usage

import URL from 'url-poly'

// create a URL
const url = new URL(window.location)

When you're ready to drop support for IE, just remove the import and your code will work the same.

Readme

Keywords

none

Package Sidebar

Install

npm i url-poly

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

5.38 kB

Total Files

4

Last publish

Collaborators

  • ryangoree