From: Ardis Lu Date: Sat, 15 Feb 2025 07:06:00 +0000 (-0800) Subject: Unlink file on keyboard interrupt X-Git-Tag: v0.1.0~51 X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=6434a185b352817203ea954ee9224db49ec01797;p=csvio Unlink file on keyboard interrupt --- diff --git a/benchmark/core.bench.js b/benchmark/core.bench.js index 22d04c6..1032992 100644 --- a/benchmark/core.bench.js +++ b/benchmark/core.bench.js @@ -8,6 +8,7 @@ const NAME_LENGTH = 15; const temp = await createTempFile(); process.on('exit', () => unlinkSync(temp)); +process.on('SIGINT', () => process.exit()); let iter = 0; await benchmarkIterations('1MB Write'.padEnd(NAME_LENGTH, '.'), 20, async () => {