skyfetch

1.1.0 • Public • Published

skyfetch

es6 + rollup + skypack + jsdelivr + unpkg + wzrd.in

fetch an npm module from various CDNs to a single es6-ready file

example

$ npm install -g skyfetch
...
$ skyfetch tinygradient
Fetching npm module from skypack: tinygradient
https://cdn.skypack.dev/tinygradient
https://cdn.skypack.dev/-/tinygradient@v1.1.2-tKse5ssJIN1EsUBizhu4/dist=es2020/tinygradient.js
https://cdn.skypack.dev/-/tinycolor2@v1.4.2-8O9xytlYPDVDOmLgvNpU/dist=es2020/tinycolor2.js
Finished. Output file: tinygradient.js

Then simply import it:

index.html:

<script type="module">
 
import gradient from './tinygradient.js'
 
document.body.style.background = gradient('red', 'green', 'blue').css()
 
</script> 

That's it, no bundlers to install, no complicated configurations. Just an html file and you're ready to start working.

credits

Thanks to these awesome projects:

License MIT

/skyfetch/

    Package Sidebar

    Install

    npm i skyfetch

    Weekly Downloads

    2

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    5.71 kB

    Total Files

    3

    Last publish

    Collaborators

    • stagas