0.1.4 • Published 5 years ago
fetch-cdn v0.1.4
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