
Research
/Security News
Compromised npm Packages in the AsyncAPI Namespace Deliver Miasma Botnet Loader
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.
ensure-path
Advanced tools
## What does this do? If you use `fs.mkdir('./foo/bar',callback)`,it will throws error if `foo` does not exist or `bar` already esists.
If you use fs.mkdir('./foo/bar',callback),it will throws error if foo does not exist or bar
already esists.
ensure-path make a simple and safe way to cerate a dir or file.
npm i ensure-path --save
const {ensureDirSync, ensureFileSync} = require('ensure-path')
//ensure there have a dir
ensureDirSync('./foo/bar')
//ensure there hava a file
ensureFileSync('./hello/world.txt')
// if file already exists, it will keep file abiding
you need use super user to create dir or file on root dir.
FAQs
## What does this do? If you use `fs.mkdir('./foo/bar',callback)`,it will throws error if `foo` does not exist or `bar` already esists.
The npm package ensure-path receives a total of 2 weekly downloads. As such, ensure-path popularity was classified as not popular.
We found that ensure-path 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.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.