You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 28, 2019. It is now read-only.
<ahref="https://jestjs.io"><imgsrc="https://img.shields.io/badge/tested_with-jest-99424f.svg"alt="Tested with Jest"></a>
12
13
</p>
13
14
14
-
> v1.0.0 will be released soon, stay tuned!
15
+
## ❓ Why
15
16
16
-
## Install
17
+
When you delete a file using the `rm` command or `fs.unlink` in node, it only remove direct pointers to the data disk sectors and make the data recovery possible with common software tools.
18
+
19
+
Permanent data erasure goes beyond basic file deletion commands, which:
20
+
1. Allow for selection of a specific standard, based on unique needs, and
21
+
2. Verify the overwriting method has been successful and removed data across the entire device.
22
+
23
+
## 📦 Install
17
24
18
25
You can use this package in two different ways, the _npm module version_:
19
26
20
27
```shell
21
-
$ npm install secure-rm --save
28
+
npm install secure-rm --save
22
29
```
23
30
24
31
Or the _command-line version_:
25
32
26
33
```shell
27
-
$ npm install secure-rm -g
34
+
npm install secure-rm -g
28
35
```
29
36
30
37
Secure-rm will retry 3 times if an error occur to ensure the task succeeded.
31
38
32
-
## Getting started
39
+
## 🚀 Getting started
33
40
34
41
If you want your application to delete specific files with a pass of cryptographically strong pseudo-random data, use one of these code snippets:
35
42
@@ -58,10 +65,10 @@ srm('./folder/*.js')
58
65
59
66
If you want to delete files on the fly, just use the command line tool:
60
67
```shell
61
-
$ secure-rm ./folder/*.js
68
+
secure-rm ./folder/*.js
62
69
```
63
70
64
-
## Usage
71
+
## 📚 Usage
65
72
66
73
### npm module
67
74
@@ -110,7 +117,7 @@ srm('./*', options)
110
117
.catch((err) => {throw err})
111
118
```
112
119
113
-
See [write.js](./lib/write.js) file for more details.
120
+
If you want to make your own cutom method, see [write.js](./lib/write.js) file for more details.
114
121
115
122
#### Events
116
123
When running, secure-rm emits events to let you know the progression of the deletion.
0 commit comments