
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
Example: examples/recursive.js
var path = require('path');
var dirFiles = require('../dist/dir-files');
var dfp = dirFiles.plugins;
var pluginOpt = {};
dirFiles({
path: path.join(__dirname, '..'),
plugins: [
dfp.skip(function skipSpecial(file) {
var name = file.name;
// example of manual skipping
var charZero = name.charAt(0);
var skip = ('.' === charZero) ||
('$' === charZero) ||
('node_modules' === name);
return skip;
}),
dfp.stat(pluginOpt),
dfp.queueDir(pluginOpt),
dfp.readDir(pluginOpt),
dfp.queueDirFiles(pluginOpt),
dfp.skip(function skipEmptyNameOrDir(file) {
return !file.name || file.stat.isDirectory();
}),
function printFile(file) {
console.log('~ '+path.join(file.dir.sub, file.name));
}
],
callback: function(err) {
if (err) throw err;
}
});
Output:
~ README.md
~ dist/dir-files.esm.js
~ dist/dir-files.js
~ dist/test/index_test.js
~ examples/cli.js
~ examples/dynamic.js
~ examples/recursive.js
~ lib/index.js
~ lib/plugins/glob.js
~ lib/plugins/queue-dir-files.js
~ lib/plugins/queue-dir.js
~ lib/plugins/read-dir.js
~ lib/plugins/skip.js
~ lib/plugins/stat.js
~ lib/time-plugins.js
~ package.json
~ rollup.config.js
~ rollup.config.test.js
~ test/index_test.esm.js
~ test/istanbul.reporter.js
~ test/mocha.opts
FAQs
micro library to get files from a path with middlewares
We found that dir-files demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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 postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.