依赖检查器

deno info [URL] 会列出 ES 模块和它的所有依赖。

  1. deno info https://deno.land/std@0.52.0/http/file_server.ts
  2. Download https://deno.land/std@0.52.0/http/file_server.ts
  3. ...
  4. local: /Users/deno/Library/Caches/deno/deps/https/deno.land/5bd138988e9d20db1a436666628ffb3f7586934e0a2a9fe2a7b7bf4fb7f70b98
  5. type: TypeScript
  6. compiled: /Users/deno/Library/Caches/deno/gen/https/deno.land/std@0.52.0/http/file_server.ts.js
  7. map: /Users/deno/Library/Caches/deno/gen/https/deno.land/std@0.52.0/http/file_server.ts.js.map
  8. deps:
  9. https://deno.land/std@0.52.0/http/file_server.ts
  10. ├─┬ https://deno.land/std@0.52.0/path/mod.ts
  11. ├─┬ https://deno.land/std@0.52.0/path/win32.ts
  12. ├── https://deno.land/std@0.52.0/path/_constants.ts
  13. ├─┬ https://deno.land/std@0.52.0/path/_util.ts
  14. └── https://deno.land/std@0.52.0/path/_constants.ts
  15. └─┬ https://deno.land/std@0.52.0/testing/asserts.ts
  16. ├── https://deno.land/std@0.52.0/fmt/colors.ts
  17. └── https://deno.land/std@0.52.0/testing/diff.ts
  18. ├─┬ https://deno.land/std@0.52.0/path/posix.ts
  19. ├── https://deno.land/std@0.52.0/path/_constants.ts
  20. └── https://deno.land/std@0.52.0/path/_util.ts
  21. ├─┬ https://deno.land/std@0.52.0/path/common.ts
  22. └── https://deno.land/std@0.52.0/path/separator.ts
  23. ├── https://deno.land/std@0.52.0/path/separator.ts
  24. ├── https://deno.land/std@0.52.0/path/interface.ts
  25. └─┬ https://deno.land/std@0.52.0/path/glob.ts
  26. ├── https://deno.land/std@0.52.0/path/separator.ts
  27. ├── https://deno.land/std@0.52.0/path/_globrex.ts
  28. ├── https://deno.land/std@0.52.0/path/mod.ts
  29. └── https://deno.land/std@0.52.0/testing/asserts.ts
  30. ├─┬ https://deno.land/std@0.52.0/http/server.ts
  31. ├── https://deno.land/std@0.52.0/encoding/utf8.ts
  32. ├─┬ https://deno.land/std@0.52.0/io/bufio.ts
  33. ├─┬ https://deno.land/std@0.52.0/io/util.ts
  34. ├── https://deno.land/std@0.52.0/path/mod.ts
  35. └── https://deno.land/std@0.52.0/encoding/utf8.ts
  36. └── https://deno.land/std@0.52.0/testing/asserts.ts
  37. ├── https://deno.land/std@0.52.0/testing/asserts.ts
  38. ├─┬ https://deno.land/std@0.52.0/async/mod.ts
  39. ├── https://deno.land/std@0.52.0/async/deferred.ts
  40. ├── https://deno.land/std@0.52.0/async/delay.ts
  41. └─┬ https://deno.land/std@0.52.0/async/mux_async_iterator.ts
  42. └── https://deno.land/std@0.52.0/async/deferred.ts
  43. └─┬ https://deno.land/std@0.52.0/http/_io.ts
  44. ├── https://deno.land/std@0.52.0/io/bufio.ts
  45. ├─┬ https://deno.land/std@0.52.0/textproto/mod.ts
  46. ├── https://deno.land/std@0.52.0/io/util.ts
  47. ├─┬ https://deno.land/std@0.52.0/bytes/mod.ts
  48. └── https://deno.land/std@0.52.0/io/util.ts
  49. └── https://deno.land/std@0.52.0/encoding/utf8.ts
  50. ├── https://deno.land/std@0.52.0/testing/asserts.ts
  51. ├── https://deno.land/std@0.52.0/encoding/utf8.ts
  52. ├── https://deno.land/std@0.52.0/http/server.ts
  53. └── https://deno.land/std@0.52.0/http/http_status.ts
  54. ├─┬ https://deno.land/std@0.52.0/flags/mod.ts
  55. └── https://deno.land/std@0.52.0/testing/asserts.ts
  56. └── https://deno.land/std@0.52.0/testing/asserts.ts

依赖检查器对本地或远程的任意 ES 模块都有效。

缓存位置

deno info 可以用来显示与缓存位置有关的信息:

  1. deno info
  2. DENO_DIR location: "/Users/deno/Library/Caches/deno"
  3. Remote modules cache: "/Users/deno/Library/Caches/deno/deps"
  4. TypeScript compiler cache: "/Users/deno/Library/Caches/deno/gen"