Socket
Book a DemoInstallSign in
Socket

duplicates

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

duplicates

Find duplicate files

1.1.1
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

duplicate

FAQs

Package last updated on 27 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.