npm.io
3.0.0 • Published 5 months ago

path-temp

Licence
MIT
Version
3.0.0
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
104

path-temp

Returns a unique temp file name inside the specified folder

npm version

Useful when there's a need to do atomic operations. The temp name contains the process ID.

Installation

<npm|yarn|pnpm> add path-temp

Usage

const pathTemp = require('path-temp')

console.log(pathTemp(process.cwd()))
//> "/home/zkochan/src/path-temp/_tmp_17230_cf3396bb9fddb8ebb30807366facf123"

License

MIT Zoltan Kochan

Keywords