secure-remove
v2.0.0
Published
Removing files securely
Downloads
1,784
Readme
secure-remove
API
secureRemove(file[, options])
Securely remove a file, using a pure JS implementation.
file
(String) - Filepath to securely removeoptions
(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. Defaultfalse
.zero
(Boolean) - Add a final overwrite with zeros to hide shredding. Defaultfalse
.
LICENSE
MIT