DenoDDeno
Powered by
ciscoheatC
Denoβ€’12mo agoβ€’
2 replies
ciscoheat

When to use deno add compared to import with a prefix?

As the title says, I can import like this:

import { parse } from "jsr:@std/csv/parse";
import { parse } from "jsr:@std/csv/parse";


And it will work, but there is also
deno add
deno add
, which I'm recommended to use if I import from
@std/csv/parse
@std/csv/parse
. When should I use
deno add
deno add
?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Deno import use for local files?
jradxlJjradxl / help
2y ago
Deno: How to import npm scoped packages with @ in deno?
Alex AdventAAlex Advent / help
3y ago