path-temp
Returns a unique temp file name inside the specified folder
Last updated 8 years ago by zkochan .
MIT · Repository · Original npm · Tarball · package.json
$ npm install path-temp 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.0                                ...           latest (9 months ago)

5 Versions

  • 3.0.0                                ...           9 months ago
  • 2.1.1                                ...           10 months ago
  • 2.1.0                                ...           3 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.0                                ...           9 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE