Find duplicate files
$ npm install -g duplicates
$ duplicates ~/Pictures
or
var duplicates = require('duplicates');
duplicates.find("/path", function (data) {
console.log(data);
});
{
"e9b286d11c6f6d1be4c2dcf0fee964c1fdb0a8e2": [
"test/fixtures/file1",
"test/fixtures/file1.duplicate"
],
"d407089473b567eb5543aa25c0c8a4c121d7c421": [
"test/fixtures/file3",
"test/fixtures/file3.dup"
]
}
Find duplicate files in or below the directory path. A callback function is called when duplicates are found.
MIT © Michał Jezierski