esm-dev / esm.sh

A fast, smart, & global CDN for modern(es2015+) web development.
https://esm.sh
MIT License
3.07k stars 147 forks source link

Support importing modules from jsr.io #814

Open hmd-ai opened 6 months ago

hmd-ai commented 6 months ago

I realize jsr.io is supposed to be used as package manager on its own, however similar to how esm.sh provides support for npm packages, it would be great to also support jsr packages. Something like this:

For jsr:

import {x} from 'jsr:x@1.1.1'

For npm:

import {y} from 'npm:y@1.1.1'

If no package manage is specified the default is npm so the current behaviour of esm.sh is unchanged.

ije commented 6 months ago

already supported, check https://esm.sh/jsr/@std/encoding@0.220.1/base64