secure-remove

2.0.0 • Public • Published

secure-remove

NPM Package Build Status JavaScript Style Guide

API

secureRemove(file[, options])

Securely remove a file, using a pure JS implementation.

  • file (String) - Filepath to securely remove
  • options (Object)
    • iterations (Number) - Overwrite the contents N times instead of the default (3).
    • randomSource (String) - Filename to read random bytes from (i.e. /dev/urandom). By default, crypto.randomBytes() is used as the source of random data.
    • size (String|Number) - Shred this many bytes (suffixes like K, M, G accepted). By default, all of the file is shredded.
    • remove (Boolean) - Truncate and remove file after overwriting. Default false.
    • zero (Boolean) - Add a final overwrite with zeros to hide shredding. Default false.

LICENSE

MIT

Readme

Keywords

Package Sidebar

Install

npm i secure-remove

Weekly Downloads

236

Version

2.0.0

License

MIT

Unpacked Size

6.3 kB

Total Files

4

Last publish

Collaborators

  • jprichardson
  • ryanzim