secure-rm
Completely erases files by making recovery impossible.
Last updated 19 days ago by oganexon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install secure-rm 
SYNC missed versions from official npm registry.

secure-rm
Completely erases files by making recovery impossible.

Version Downloads/week License: MIT

Build Status: master Build Status: develop Code coverage

❓ Why

When you delete a file using the rm command or fs.unlink in node, it only removes direct pointers to the data disk sectors and make the data recovery possible with common software tools.

Permanent data erasure goes beyond basic file deletion commands, which:

  1. Allow for selection of a specific standard, based on unique needs,
  2. Verify the overwriting method has been successful and removed data across the entire device.

???? Installation

Node and npm required.

npm install secure-rm

Looking for a command line interface? Click here.

???? Getting started

If you want your application to delete specific files with a pass of cryptographically strong pseudo-random data, use one of these code snippets:

Callback version

const srm = require('secure-rm')

srm('./folder/*.js', (err) => {
  if (err) throw err
  console.log('Files successfully deleted !')
})

Promise version

const srm = require('secure-rm')

srm('./folder/*.js')
  .then(() => console.log('Files successfully deleted !'))
  .catch((err) => {throw err})

???? Usage

Visit the wiki to discover all the possibilities secure-rm offers!

Examples:

const options = {
  standard: 'gutmann',
  maxBusyTries: 5,
  disableGlob: true
}

srm('./data/*.js', options, (err) => {
  if (err) throw err
  console.log('Files successfully deleted !')
})

srm('./trash/dir/', { standard: 'preview' }, (err, fileTree) => {
  if (err) throw err
  console.log('Files that would be deleted:' + fileTree)
})

???? Changelog / History

See the changelog or releases.

???? TODO

  • [x] Implement more tests
  • [ ] Support of 64bit files

???? Contributing

Dependencies Contributors Last commit npm collaborators

Tested with Jest Node version language

See contributing guidelines

Licensing

This project is under MIT License.

Current Tags

  • 1.2.0-4                                ...           beta (3 months ago)
  • 4.2.0                                ...           latest (19 days ago)

52 Versions

  • 4.2.0                                ...           19 days ago
  • 4.1.0                                ...           23 days ago
  • 4.0.1                                ...           25 days ago
  • 3.0.3                                ...           3 months ago
  • 3.0.2                                ...           3 months ago
  • 3.0.1                                ...           3 months ago
  • 3.0.0                                ...           3 months ago
  • 2.0.1                                ...           3 months ago
  • 2.0.0                                ...           3 months ago
  • 1.2.0-4                                ...           3 months ago
  • 1.2.0-3                                ...           3 months ago
  • 1.2.0-2                                ...           3 months ago
  • 1.2.0-1                                ...           3 months ago
  • 1.2.0-0                                ...           3 months ago
  • 1.1.1                                ...           3 months ago
  • 1.1.0                                ...           3 months ago
  • 1.0.1                                ...           3 months ago
  • 1.0.0-0                                ...           3 months ago
  • 0.14.0                                ...           3 months ago
  • 0.13.0                                ...           3 months ago
  • 0.12.3                                ...           3 months ago
  • 0.12.2                                ...           3 months ago
  • 0.12.1                                ...           3 months ago
  • 0.12.0                                ...           3 months ago
  • 0.11.0                                ...           3 months ago
  • 0.10.1                                ...           3 months ago
  • 0.10.0                                ...           3 months ago
  • 0.9.1                                ...           3 months ago
  • 0.9.0                                ...           3 months ago
  • 0.8.3                                ...           3 months ago
  • 0.8.2                                ...           3 months ago
  • 0.8.1                                ...           3 months ago
  • 0.8.0                                ...           3 months ago
  • 0.7.0                                ...           3 months ago
  • 0.6.1                                ...           3 months ago
  • 0.6.0                                ...           3 months ago
  • 0.5.4                                ...           4 months ago
  • 0.5.3                                ...           4 months ago
  • 0.5.2                                ...           4 months ago
  • 0.5.1                                ...           4 months ago
  • 0.5.0                                ...           4 months ago
  • 0.4.0                                ...           5 months ago
  • 0.3.2-1                                ...           5 months ago
  • 0.3.2                                ...           5 months ago
  • 0.3.1                                ...           5 months ago
  • 0.3.0                                ...           5 months ago
  • 0.2.1                                ...           5 months ago
  • 0.2.0                                ...           5 months ago
  • 0.1.0                                ...           5 months ago
  • 0.0.4                                ...           5 months ago
  • 0.0.2                                ...           5 months ago
  • 0.0.1                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 14
Last Day 0
Last Week 0
Last Month 27
Dependencies (2)
Dev Dependencies (11)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |