Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

temp-dir

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Issues
File Explorer

Advanced tools

temp-dir

Get the real path of the system temp directory

    3.0.0latest

Version published
Maintainers
1
Weekly downloads
7,478,082
decreased by-13.87%

Weekly downloads

Changelog

Source

Breaking

  • Require Node.js 14 (#6) 6da7c17
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/temp-dir/compare/v2.0.0...v3.0.0

Readme

Source

temp-dir

Get the real path of the system temp directory

The os.tmpdir() built-in doesn't return the real path. That can cause problems when the returned path is a symlink, which is the case on macOS. Use this module to get the resolved path.

Install

npm install temp-dir

Usage

import temporaryDirectory from 'temp-dir'; console.log(temporaryDirectory); //=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T' import os from 'node:os'; console.log(os.tmpdir()); //=> '/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T' // <= Symlink

Keywords

FAQs

What is temp-dir?

Get the real path of the system temp directory

Is temp-dir popular?

The npm package temp-dir receives a total of 6,053,090 weekly downloads. As such, temp-dir popularity was classified as popular.

Is temp-dir well maintained?

We found that temp-dir demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 26 Sep 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc