
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
Watch changes to subdirectories and subfiles within a given directory.
Uses the filewatcher module to fall back on polling the filesystem when ulimit is reached.
npm install yolowatch
var yolowatch = require('yolowatch')
var watcher = yolowatch('/path/to/my/dir', opts)
watcher.on('changed', function (file, data) {
console.log(file, 'was changed')
console.log('is a', data.type) //'file', 'directory'
})
watcher.on('deleted', function (file) {
console.log(file, 'was deleted')
})
watcher.on('added', function (file, data) {
console.log(file, 'was added')
})
watcher.close() // remove all listeners
Example data in callback (see folder-walker):
{
basename: 'index.js',
relname: 'test/index.js',
root: '/Users/karissa/dev/node_modules/folder-walker',
filepath: '/Users/karissa/dev/node_modules/folder-walker/test/index.js',
stat: [fs.Stat Object],
type: 'file' // or 'directory'
}
opts, is passed to filewatcher.opts.filter passed to folder-walker.FAQs
watch filesystem changes yolostyle
We found that yolowatch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.