diff options
author | 2022-01-23 21:14:34 -0800 | |
---|---|---|
committer | 2022-01-23 21:14:34 -0800 | |
commit | 4ac8c1bd840969a317f03540b7cc985031af4ccd (patch) | |
tree | ce4176fc9b979e0f7067336f1b4cdad7783fa6e0 /bench/snippets | |
parent | 962b7fa8d91404bb3a7f516fbda92b3235a4a327 (diff) | |
download | bun-4ac8c1bd840969a317f03540b7cc985031af4ccd.tar.gz bun-4ac8c1bd840969a317f03540b7cc985031af4ccd.tar.zst bun-4ac8c1bd840969a317f03540b7cc985031af4ccd.zip |
Add copyfile snippet
Diffstat (limited to 'bench/snippets')
-rw-r--r-- | bench/snippets/copyfile.mjs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bench/snippets/copyfile.mjs b/bench/snippets/copyfile.mjs new file mode 100644 index 000000000..9db9faefe --- /dev/null +++ b/bench/snippets/copyfile.mjs @@ -0,0 +1,3 @@ +import { copyFileSync } from "node:fs"; +const arg = process.argv.slice(2); +copyFileSync(arg[0], arg[1]); |