UNPKG

@jsdocs-io/extractor

Version:

The API extractor for npm packages powering jsdocs.io

8 lines (7 loc) 295 B
import { mkdtempDisposable, realpath } from "node:fs/promises"; import { tmpdir } from "node:os"; import { join } from "node:path"; export async function tempDir() { const realTmpDir = await realpath(tmpdir()); return await mkdtempDisposable(join(realTmpDir, "jsdocs-io-extractor-")); }