The deno info command provides information about the Deno cache and module dependencies.
Usage
# Show cache directories and Deno version
deno info
# Show dependency tree for a module
deno info [FILE]
deno info https://deno.land/std/http/file_server.ts
Flags
Output information in JSON format
Reload source code cache (recompile TypeScript)
Enables or disables the use of a local node_modules folder for npm packages
Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages
Specify the configuration file
Disable automatic loading of the configuration file
Check the specified lock file
Do not resolve remote modules
Do not resolve npm modules
Examples
Show Deno version and cache directory locations:
Output:
Deno version: 2.1.0
DENO_DIR location: /Users/username/Library/Caches/deno
Remote modules cache: /Users/username/Library/Caches/deno/deps
npm modules cache: /Users/username/Library/Caches/deno/npm
Emitted modules cache: /Users/username/Library/Caches/deno/gen
Language server registries cache: /Users/username/Library/Caches/deno/registries
Origin storage: /Users/username/Library/Caches/deno/location_data
Web cache storage: /Users/username/Library/Caches/deno/web_cache
Show module dependency tree
Display the full dependency graph for a module:
deno info https://deno.land/std/http/file_server.ts
JSON output
Get information in JSON format for programmatic use:
deno info --json
deno info --json https://deno.land/std/http/file_server.ts
Check module with import map
deno info --import-map=import_map.json main.ts