How to import from a URL in the age of JSR?

I’m down with the whole JSR thing — deno add is very useful and maintainable. However, one thing I liked about the deno.land days was that I could sometimes use a /x/ module in the browser by importing directly from a deno.land/x/*.js or *.ts url.
Is it possible to do this with JSR? For instance, is there a way to load @std/csv into the browser from a JSR URL?
2 Replies
Óscar
Óscar7d ago
To import the std packages in the browser in a stable and secure way, I've created this repo: https://github.com/oscarotero/std If you want to import any other library, you can use esm.sh that has support for jsr.
patwasalinguist
patwasalinguistOP7d ago
thank you!

Did you find this page helpful?