url-ponyfill
TypeScript icon, indicating that this package has built-in type declarations

0.5.10 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i url-ponyfill

Weekly Downloads

2,041

Version

0.5.10

License

MIT

Unpacked Size

37.4 kB

Total Files

7

Last publish

Collaborators

  • jccr