memory-erasure
Advanced tools
Comparing version 1.5.0 to 1.6.0
{ | ||
"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` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8644
142
65
13
6
1
1
No