jsr
jsr copied to clipboard
[Feature request] Add raw jsr specifier import snippet with a copy button
For example, when I want to use @std/http, the first thing I do is to go to https://jsr.io/@std/http and copy deno add @std/http, run it, copy import * as mod from "@std/http";, and paste it in my program.
This perfectly works, but I sometimes don't feel like doing the first step i.e. running deno add @std/http because I write a single Deno script without even having deno.json to do some chores. In this scenario, rather than doing deno add @std/http, I simply want to import JSR modules with bare specifiers, like import * as mod from "jsr:@std/http@^0.222.1". It would be really nice to have this option shown in the JSR module overview page.