You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

memory-erasure

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memory-erasure

Node.js package intended to replace the deleted file content with random numbers.

1.7.0
latest
Source
npmnpm
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

Memory Erasure v1.7.0 Documentation

logo

NPM Version Package License

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

Keywords

erase

FAQs

Package last updated on 10 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts