From 4ac8c1bd840969a317f03540b7cc985031af4ccd Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 23 Jan 2022 21:14:34 -0800 Subject: Add copyfile snippet --- bench/snippets/copyfile.mjs | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 bench/snippets/copyfile.mjs (limited to 'bench/snippets/copyfile.mjs') 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]); -- cgit v1.2.3