fetch-cdn

0.1.4 • Public • Published

Fetch js file from CDN

Used to load web workers from CDN/remote origin

Installation

$ npm install --save fetch-cdn

Usage

import fetchCDN from 'fetch-cdn'
// or use from cdn
// import fetchCDN from 'https://www.unpkg.com/browse/fetch-cdn@0.1.4'
async function getLocalUrl(remoteUrl){
    return await fetchCDN(remoteUrl)
}

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i fetch-cdn

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

3.44 kB

Total Files

5

Last publish

Collaborators

  • abdelhay