new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Deno · Reference · all subjects

cli commands/add

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

deno add default version range

By default, dependencies are added with a caret (^) version range, which allows compatible versions.

deno add command

The deno add command adds dependencies to a project's configuration file. It is an alias for deno install [PACKAGES].

deno add basic usage with npm and jsr packages

Add packages from JSR and npm using: deno add npm:express hono zod or deno add jsr:@std/path

deno add dependencies storage with package.json

If a project has a package.json, npm packages will be added to dependencies in package.json. Otherwise, all packages are added to the imports field in deno.json

deno add --save-exact flag

The --save-exact flag pins a dependency to an exact version without the caret prefix. Example: deno add --save-exact @std/path saves the dependency as 1.0.0 instead of ^1.0.0

deno add unprefixed package names (Deno 2.8+)

As of Deno 2.8, unprefixed package names are treated as npm packages by default, so the npm: prefix is no longer required at the CLI. deno add express is equivalent to deno add npm:express. JSR packages still need the jsr: prefix. The npm: prefix remains required in import specifiers.

deno add command

deno add is used to add dependencies.

Give your agent this brain