aboutsummaryrefslogtreecommitdiff
path: root/examples/cat.ts
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cat.ts')
-rw-r--r--examples/cat.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/cat.ts b/examples/cat.ts
new file mode 100644
index 000000000..1bb1c809a
--- /dev/null
+++ b/examples/cat.ts
@@ -0,0 +1,5 @@
+import { resolve } from "path";
+const { write, stdout, file } = Bun;
+const input = resolve(process.argv[process.argv.length - 1]);
+
+await write(stdout, file(input));