Created
August 7, 2024 15:32
-
-
Save serebano/1f9eccc244aef4a1bfa3440f7aacd05b to your computer and use it in GitHub Desktop.
Import remote module using fetch. Works in browser/node/deno/bun
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch("https://gist.github.com/serebano/83304400d6141751c38202bb66d14f83/raw") | |
.then(async (r) => (await import(`data:application/javascript;base64,${btoa(await r.text())}`))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment