duplicates

1.1.1 • Public • Published

Duplicates Build Status

Find duplicate files

Installation

$ npm install -g duplicates

Usage

$ duplicates ~/Pictures

or

var duplicates = require('duplicates');
 
duplicates.find("/path", function (data) {
  console.log(data);
});

Output

{
  e9b286d11c6f6d1be4c2dcf0fee964c1fdb0a8e2:
    [ 'test/fixtures/file1', 'test/fixtures/file1.duplicate' ],
  d407089473b567eb5543aa25c0c8a4c121d7c421:
    [ 'test/fixtures/file3', 'test/fixtures/file3.dup' ]
}

API

find(path, callback)

Find duplicate files in or below the directory path. A callback function is called when duplicates are found.

License

MIT © Michał Jezierski

Package Sidebar

Install

npm i duplicates

Weekly Downloads

0

Version

1.1.1

License

MIT

Last publish

Collaborators

  • michal.jezierski