diff options
Diffstat (limited to 'examples/cat.ts')
-rw-r--r-- | examples/cat.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cat.ts b/examples/cat.ts index a7d60b347..01a059ad0 100644 --- a/examples/cat.ts +++ b/examples/cat.ts @@ -1,6 +1,6 @@ import { resolve } from "path"; const { write, stdout, file } = Bun; -const { argv } = process; +import { argv } from "process"; -const path = resolve(argv.at(-1)); +const path = resolve(argv.at(-1)!); await write(stdout, file(path)); |