path-temp
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i path-temp

Weekly Downloads

149,783

Version

2.1.0

License

MIT

Unpacked Size

3.25 kB

Total Files

5

Last publish

Collaborators

  • zkochan