duplicate-file-finder
v0.12.0
Published
Finds duplicate files across given directories without hashing.
Downloads
13
Readme
Duplicate File Finder
Finds duplicate files across given directories without hashing.
Table of Contents
Install
https://www.npmjs.com/package/duplicate-file-finder
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'
]
]
Architecture
Can't see the diagram? View it on GitHub
graph TD;
effects-->strategies;
effects-->lib;
effects-->io;
commands-->strategies;
commands-->effects;
commands-->lib;