remove-duplicate-files

0.0.5 • Public • Published

This module helps in removing duplicate files from a directory.

Note:

  1. Takes care of nested directory structure as well.
  2. Uses MD5 hash values as checksum for file.
  3. Usage - import method "removeDuplicates" and call it with path, on promise resolve, it returns the Set of deleted files.

let { removeDuplicates } = require('remove-duplicate-files');

removeDuplicates('path/to/directory').then(resp=>{ console.log(resp); }, err=>{ console.err(err); });

Package Sidebar

Install

npm i remove-duplicate-files

Weekly Downloads

2

Version

0.0.5

License

ISC

Unpacked Size

3 kB

Total Files

3

Last publish

Collaborators

  • pkundu