
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
mkdir-bluebird
Advanced tools
promise wrapper for node’s fs.mkdir() that ignores EEXIST
by default.
wraps node’s fs.mkdir()
, in a bluebird promise that resolves with true
if successful or rejects with the Error
returned by fs.mkdir()
; both results need to be handled by the code calling this function.
npm install mkdir-bluebird
@param {string|buffer} path
@param {number} [mode = 0o777]
@param {boolean} [ignore = true] ignore `EEXIST` directory errors returned by `fs.mkdir()`
@returns {Promise}
ignores EEXIST
directory errors returned by fs.mkdir()
var mkdir = require( 'mkdir-bluebird' );
mkdir( 'test-dir' )
.then(
function( result ) {
// handle success
}
)
.catch(
function( err ) {
// handle error
}
);
false
acknowledges EEXIST
directory errors returned by fs.mkdir()
var mkdir = require( 'mkdir-bluebird' );
mkdir( 'test-dir', null, false )
.then(
function( result ) {
// handle success
}
)
.catch(
function( err ) {
// handle error
}
);
the path __dirname/test
must exist in order to create the directory test-dir
in it
var mkdir = require( 'mkdir-bluebird' );
var path = require( 'path' );
var dirpath = path.join( __dirname, 'test', 'test-dir' );
mkdir( dirpath )
.then(
function( result ) {
// handle success
}
)
.catch(
function( err ) {
// handle error
}
);
FAQs
promise wrapper for node’s fs.mkdir() that ignores EEXIST by default
We found that mkdir-bluebird 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.