1.7.0 • Published 11 months ago

memory-erasure v1.7.0

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Memory Erasure v1.7.0 Documentation

Table of contents

Installation

npm i memory-erasure

Description

Node.js package intended to replace the deleted file content with random numbers. It fills the whole free disk space with 1MB of data on each iteration. This package is useful when you want to completely erase the sensitive data from the disk sectors after you delete the file(s) that contain this sensitive data.

Usage example

import { eraseMemory } from 'memory-erasure'

eraseMemory((err, status) => {
  if (err) console.error(err)
  else if (status)
    console.log(`erased ${status.erasedMemoryByteLength / 1e6 / 1e3} GB`)
})

API

Interfaces

type Callback = (err: any, data: null | IStatus) => void
interface IStatus {
  erasedMemoryByteLength: number
  finished: boolean
}

eraseMemory

  • cb: Callback
  • Returns: IStatus
1.7.0

11 months ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.0

1 year ago