Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ignoring-watcher
Advanced tools
Readme
This module allows you to create a directory tree watcher while ignoring specific directories/files based on .gitignore rules. Instead of specifying which files/directories to watch it is often more convenient to specify which files/directories to not watch.
Internally, this module uses chokidar for cross-OS file watching. Also, the chokidar module internally uses anymatch to handle ignore rules.
var ignoringWatcher = require('ignoring-watcher').createWatcher({
// Directory to watch. Defaults to process.cwd()
dir: __dirname,
// Watch multiple directories instead of a single dir
dirs: ['some/dir', 'another/dir'],
// One or more ignore patterns
ignorePatterns: [
'/node_modules',
'*.marko.js'
],
// The ignore patterns from these ignore files will all
// be loaded and joined together
ignoreFiles: [
'.gitignore',
'.npmignore'
],
// Only the first existing ignore file (if any) will be loaded and merged
selectIgnoreFile: [
'.gitignore',
'.npmignore'
],
// If no ignore patterns were found via the other properties
// then these ignore patterns will be used
defaultIgnorePatterns: [
'.*'
],
// The following patterns will always be loaded and not impact
// the loading of the `defaultIgnorePatterns`
ignoreAlwaysPatterns: [
'output-file.txt'
]
});
ignoringWatcher
.on('modified', function(eventArgs) { // Fired for any change event (add, delete, etc.)
var type = eventArgs.type; // add | addDir | change | unlink | unlinkDir
var path = eventArgs.path; // The full file system path of the modified file
});
ignoringWatcher.startWatching(); // Don't forget to start the file watching service
Pull requests, bug reports and feature requests welcome.
ISC
FAQs
Watch an entire directory tree while ignoring specific directories/files based on .gitignore rules.
The npm package ignoring-watcher receives a total of 202 weekly downloads. As such, ignoring-watcher popularity was classified as not popular.
We found that ignoring-watcher 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.