npm

Need private packages and team management tools?Check out npm Orgs. »

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

install

npm i duplicates

Downloadsweekly downloads

4

version

1.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability