Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
gettemporaryfilepath
Advanced tools
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"
Make sure you have node.js and npm installed, then run:
npm install gettemporaryfilepath
Based on node-temp
and licensed under the 3-clause BSD license -- see the LICENSE
file for
details.
FAQs
Generate temporary file names in your OS' temporary dir
The npm package gettemporaryfilepath receives a total of 10,022 weekly downloads. As such, gettemporaryfilepath popularity was classified as popular.
We found that gettemporaryfilepath demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.