url-ponyfill
v0.5.10
Published
UMD & [ponyfill](ponyfill.com) fork of [webcomponents/URL](github.com/webcomponents/url)
Downloads
7,959
Readme
URL-ponyfill
UMD & ponyfill fork of webcomponents/URL
Usage
ES2015 (webpack, rollup, etc)
import { URL } from 'url-ponyfill'
Node.js
const { URL } = require('url-ponyfill')
Polyfill
import { URL, hasNativeURL } from 'url-ponyfill';
if (!hasNativeURL) {
self.URL = URL;
}