fetch-cdn
v0.1.4
Published
Get web worker from cdn/remote origin
Downloads
2
Readme
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/[email protected]'
async function getLocalUrl(remoteUrl){
return await fetchCDN(remoteUrl)
}
License
MIT