New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.0.15
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Memory Erasure

logo

NPM Version Package License NPM Downloads

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.

Example

import { eraseMemory } from 'memory-erasure'

eraseMemory((err, data) => {
  if (err) console.error(err)
  else if (data) console.log(data)
})

Interfaces

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

eraseMemory

  • cb: Callback
  • Returns: IStatus

Keywords

FAQs

Package last updated on 23 Apr 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