dir-compare is a Node.js package that facilitates comprehensive directory comparison. It identifies differences between two directories, providing detailed insights into added, deleted, modified, and equal files or subdirectories. Offering both asynchronous and synchronous comparison, it generates detailed reports including diffs, enabling efficient management of file system changes. Highly configurable, 'dir-compare' supports customized exclusion filters, file content comparison options, and output formatting, making it ideal for version control, backups, and deployment automation.
Dir-compare npm package downloads show a strong growth trend. From March 2024 to August 2025, downloads steadily increased, peaking in August 2025 at 3.5 million. September 2025 is incomplete, showing a significantly lower number (611k) reflecting partial month data.
The npm package dir-compare had sporadic releases, peaking in late 2018 and early 2021. Initial releases were in 2014-2016 and updates continued somewhat regularly through 2021. Version 5.0.0 was released in May 2024. There have been no releases from August 2024 through August 2025 indicating a period of relative inactivity.