README
Duplicate File Finder
Finds duplicate files across given directories without hashing.
Install
npm install duplicate-file-finder
Usage
const { findDuplicates } = require('duplicate-file-finder');
const sourcePath = 'photos'; // defaults to current directory.
const searchPaths = ['more-photos', 'even-more-photos']; // defaults to empty.
const duplicates = findDuplicates({ sourcePath, searchPaths }).then(duplicates => {
// do something with duplicates.
});
duplicates
is a data structure like:
[
[
'photos/family.jpg',
'more-photos/copy-of-family.jpg',
'even-more-photos/another-copy-of-family.jpg'
],
[
'photos/pets.jpg',
'more-photos/copy-of-pets.jpg'
]
]