Socket
Socket
Sign inDemoInstall

path-temp

Package Overview
Dependencies
2
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    path-temp

Returns a unique temp file name inside the specified folder


Version published
Weekly downloads
228K
decreased by-4.53%
Maintainers
1
Install size
9.82 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 16 Jul 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc