ryangoree / url-poly

Polyfill for the URL web api.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Polyfill for the URL web api.

License:MIT License


Languages

Language:JavaScript 100.0%