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 - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

dist/memory-erasure.cjs.js

30

package.json
{
"name": "memory-erasure",
"version": "1.5.0",
"version": "1.6.0",
"description": "Node.js package intended to replace the deleted file content with random numbers.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "dist/memory-erasure.cjs.js",
"module": "dist/memory-erasure.esm.js",
"types": "dist/memory-erasure.d.ts",
"author": "Dato Marjanidze <datomarjanidze10@gmail.com>",
"license": "ISC",
"homepage": "https://github.com/datomarjanidze/memory-erasure#readme",
"type": "module",
"files": [

@@ -15,4 +15,8 @@ "dist"

"scripts": {
"build": "rimraf dist && tsc"
"build": "rimraf dist && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript"
},
"repository": {
"type": "git",
"url": "git+https://github.com/datomarjanidze/memory-erasure.git"
},
"keywords": [

@@ -25,6 +29,2 @@ "erase",

],
"repository": {
"type": "git",
"url": "git+https://github.com/datomarjanidze/memory-erasure.git"
},
"bugs": {

@@ -34,6 +34,16 @@ "url": "https://github.com/datomarjanidze/memory-erasure/issues"

"devDependencies": {
"@types/node": "^18.16.0",
"@rollup/plugin-terser": "^0.4.1",
"@rollup/plugin-typescript": "^11.1.0",
"@types/node": "^18.16.3",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"eslint": "^8.39.0",
"eslint-config-standard-with-typescript": "^34.0.1",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-promise": "^6.1.1",
"rimraf": "^5.0.0",
"rollup": "^3.21.1",
"rollup-plugin-dts": "^5.3.0",
"typescript": "^5.0.4"
}
}

@@ -1,2 +0,2 @@

## Memory Erasure
## Memory Erasure v1.6.0 Documentation

@@ -15,5 +15,6 @@ <img src="icon.png" alt="logo" height="200px" >

- [Description](#Description)
- [Example](#Example)
- [Interfaces](#Interfaces)
- [eraseMemory](#eraseMemory)
- [Usage example](#Usage-example)
- [API](#API)
- [Interfaces](#Interfaces)
- [eraseMemory](#eraseMemory)

@@ -34,3 +35,3 @@ ### Installation

### Example
### Usage example

@@ -40,11 +41,13 @@ ```ts

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

@@ -61,5 +64,5 @@ type Callback = (err: any, data: null | IStatus) => void

### eraseMemory
#### eraseMemory
- `cb: Callback`
- Returns: `IStatus`
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