
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
recurdir is a lightweight package written in typescript that allows you to make/remove directories easily.
recurdir is a lightweight package written in typescript that allows you to make/remove directories easily.
npm i recurdir
import * as recurdir from 'recurdir';
//or const recurdir = require('recurdir');
//make directory
recurdir.mk('./path/to/dir', (err) => {
if (err) console.log(err)
else console.log('done')
});
//remove multiple directories
recurdir.rm(['./path/to/dir', './path/to/dir2'], (err) => {
if (err) console.log(err)
else console.log('done')
});
//make multiple directories with promise
recurdir.mk(['./path/to/dir', './path/to/dir2']).then(() => {
console.log('done!')
}).catch((err) => {
console.log(err)
});
recurdir.stats('./node_modules', (err, stats) => {
if (err) return console.log(err);
console.log(stats);
/* output:
{
'@types': {
node: {
'zlib.d.ts': [Stats],
'worker_threads.d.ts': [Stats],
'vm.d.ts': [Stats],
'v8.d.ts': [Stats],
.
.
.
'assert.d.ts': [Stats],
'ts3.2': [Object]
}
}
}
*/
});
recurdir.stats('./node_modules', (err, stats) => {
if (err) return console.log(err);
console.log(stats);
/* output:
{
'@types': {
node: {
'worker_threads.d.ts': 7325,
'zlib.d.ts': 12182,
'vm.d.ts': 4542,
'v8.d.ts': 6927,
.
.
.
'assert.d.ts': 2660,
'ts3.2': [Object]
}
}
}
*/
}, (stats) => {
return stats.size;
});
FAQs
recurdir is a lightweight package written in typescript that allows you to make/remove directories easily.
We found that recurdir 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.