{"repo":"paulmillr/chokidar","free":true,"listed":false,"github":"https://github.com/paulmillr/chokidar","clone":"git clone https://github.com/paulmillr/chokidar.git","description":"Minimal and efficient cross-platform file watching library","language":"TypeScript","stars":12219,"topics":["watch-files","fsevents","watcher","filesystem","chokidar","nodejs"],"license":"MIT","category":"dev-tools","readme_excerpt":"Chokidar Minimal and efficient cross-platform file watching library Why? There are many reasons to prefer Chokidar to raw fs.watch / fs.watchFile in 2026: - Events are properly reported - macOS events report filenames - events are not reported twice - changes are reported as add / change / unlink instead of useless rename - Atomic writes are supported, using atomic option - Some file editors use them - Chunked writes are supported, using awaitWriteFinish option - Large files are commonly written in chunks - File / dir filtering is supported - Symbolic links are supported - Recursive watching is always supported, instead of partial when using raw events - Includes a way to limit recursion depth Chokidar relies on the Node.js core fs module, but when using fs.watch and fs.watchFile for watching, it normalizes the events it receives, often checking for truth by getting file stats and/or dir contents. The fs.watch -based implementation is the default, which avoids polling and keeps CPU usage down. Be advised that chokidar will initiate watchers recursively for everything within scope of the paths that have been specified, so be judicious about not wasting system resources by watching much more than needed. For some cases, fs.watchFile , which utilizes polling and uses more resources, is used. Made for Brunch in 2012, it is now used in 30 million repositories and has proven itself in production environments. - Nov 2025 update: v5 is out. Makes package ESM-only and increases minimu","default_branch":null,"files":null,"tree":[],"storefront":"/r/paulmillr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/paulmillr/chokidar/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}