🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

gettemporaryfilepath

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gettemporaryfilepath

Generate temporary file names in your OS' temporary dir

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
10K
-35.2%
Maintainers
1
Weekly downloads
 
Created
Source

node-gettemporaryfilepath

Generate file names for temporary files:

var getTemporaryFilePath = require('gettemporaryfilepath');

getTemporaryFilePath(); // "/tmp/112116-2662-18u8bl8"
getTemporaryFilePath(); // "/tmp/112116-2662-1inp07r"

Creating and cleaning up the temporary files is your own responsibility.

Custom suffixes and prefixes are supported using the same syntax as node-temp (from which most of the code was taken):

getTemporaryFilePath({suffix: '.png'}); // "/tmp/112116-2662-125a83d.png"
getTemporaryFilePath({prefix: 'foo-'}); // "/tmp/foo-112116-2662-avhu28"

Installation

Make sure you have node.js and npm installed, then run:

npm install gettemporaryfilepath

License

Based on node-temp and licensed under the 3-clause BSD license -- see the LICENSE file for details.

Keywords

temporary

FAQs

Package last updated on 17 Jul 2020

Did you know?

Socket

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