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

    Keywords

    none

    Install

    npm i url-ponyfill

    DownloadsWeekly Downloads

    126

    Version

    0.5.10

    License

    MIT

    Unpacked Size

    37.4 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar