快速開始
Last updated
deno help bundle
deno bundle -h
deno bundle --helpdeno run main.ts
deno run https://mydomain.com/main.ts
cat main.ts | deno run -deno run main.ts a b -c --quietconsole.log(Deno.args); // [ "a", "b", "-c", "--quiet" ]deno run --allow-net net_client.tsdeno run net_client.ts --allow-netconsole.log(Deno.args); // [ "--allow-net" ]deno run --watch net_client.tsdeno run
deno cache
deno test// main.ts
export { xyz } from "https://unpkg.com/xyz-lib@v0.9.0/lib.ts";deno cache --lock=lock.json --lock-write src/deps.ts{
"https://deno.land/std@0.71.0/textproto/mod.ts": "3118d7a42c03c242c5a49c2ad91c8396110e14acca1324e7aaefd31a999b71a4",
"https://deno.land/std@0.71.0/io/util.ts": "ae133d310a0fdcf298cea7bc09a599c49acb616d34e148e263bcb02976f80dee",
"https://deno.land/std@0.71.0/async/delay.ts": "35957d585a6e3dd87706858fb1d6b551cb278271b03f52c5a2cb70e65e00c26a",
...
}deno run --lock=lock.json --cached-only main.ts--config Load tsconfig.json configuration file
--importmap UNSTABLE: Load import map file
--no-remote Do not resolve remote modules
--reload= Reload source code cache (recompile TypeScript)
--unstable Enable unstable APIs--cached-only Require that remote dependencies are already cached
--inspect= activate inspector on host:port ...
--inspect-brk= activate inspector on host:port and break at ...
--seed Seed Math.random()
--v8-flags= Set V8 command line options. For help: ...