Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-57.14%
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc