url-ponyfill

UMD & [ponyfill](ponyfill.com) fork of [webcomponents/URL](github.com/webcomponents/url)

Usage no npm install needed!

<script type="module">
  import urlPonyfill from 'https://cdn.skypack.dev/url-ponyfill';
</script>

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;
}

License

MIT