Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
mkdirp-classic
Advanced tools
Package description
The mkdirp-classic npm package is a utility that allows you to create directories and subdirectories in a file system, similar to the `mkdir -p` command in Unix/Linux. It ensures that all directories in a specified path are created if they do not already exist, making it easier to set up a nested directory structure with a single command.
Create directories recursively
This feature allows you to create a nested directory structure. If any part of the specified path does not exist, mkdirp-classic will create those directories for you. The example code demonstrates how to create a series of nested directories.
const mkdirp = require('mkdirp-classic');
mkdirp('/tmp/some/long/path', function (err) {
if (err) console.error(err)
else console.log('Directory created!')
});
The mkdirp package offers similar functionality to mkdirp-classic, allowing for the recursive creation of directories. It is essentially the modern version of mkdirp-classic, with additional features and improvements.
fs-extra is a package that extends the native fs module, providing additional functionality not found in the standard library. Among its many features, it includes a method for recursive directory creation, similar to what mkdirp-classic offers, but as part of a larger suite of file system operations.
Readme
Just a non-deprecated mirror of mkdirp 0.5.2 for use in modules where we depend on the non promise interface.
npm install mkdirp-classic
// See the above link
MIT
FAQs
Mirror of mkdirp 0.5.2
The npm package mkdirp-classic receives a total of 9,790,213 weekly downloads. As such, mkdirp-classic popularity was classified as popular.
We found that mkdirp-classic 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
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.