* @returns {Promise<string>} A `Promise<string>` for the full path to a newly-created temporary folder.
*/
export async function createTempFolder() {
- const path = normalize(`${tmpdir()}/scsv_test_`);
+ const path = normalize(`${tmpdir()}/csvio_test_`);
return mkdtemp(path);
}
* @returns {Promise<string>} A `Promise<string>` for the full path to a newly-created temporary file.
*/
export async function createTempFile() {
- const path = normalize(`${tmpdir()}/scsv_test_${crypto.randomUUID()}.tmp`);
+ const path = normalize(`${tmpdir()}/csvio_test_${crypto.randomUUID()}.tmp`);
await open(path, 'a+');
return path;
}