path-temp
Returns a unique temp file name inside the specified folder
Last updated 3 years ago by zkochan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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

  • 2.1.0                                ...           latest (3 years ago)

3 Versions

  • 2.1.0                                ...           3 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (5)

Copyright 2013 - present © cnpmjs.org | Home |