@riavzon/shield-base 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -92,8 +92,10 @@ import {
|
|
|
92
92
|
getGeoDatas,
|
|
93
93
|
getListOfProxies,
|
|
94
94
|
getThreatLists,
|
|
95
|
-
getTorLists
|
|
96
|
-
|
|
95
|
+
getTorLists,
|
|
96
|
+
restartData,
|
|
97
|
+
run
|
|
98
|
+
} from '@riavzon/shield-base"';
|
|
97
99
|
const contactInfo = `<name> [url] - <email>`
|
|
98
100
|
|
|
99
101
|
const mmdbPath = 'path to mmdbctl binary'
|
|
@@ -116,6 +118,12 @@ const results = await Promise.allSettled([
|
|
|
116
118
|
getListOfProxies(outputDirectory, mmdbPath),
|
|
117
119
|
getThreatLists(outputDirectory, mmdbPath, selectedSources)
|
|
118
120
|
]);
|
|
121
|
+
const restartAllData = true;
|
|
122
|
+
|
|
123
|
+
const restart = restartData(outputDirectory, restartAllData)
|
|
124
|
+
|
|
125
|
+
// A utility to run shell commands
|
|
126
|
+
await run('ls')
|
|
119
127
|
```
|
|
120
128
|
|
|
121
129
|
### Flag Based
|
|
@@ -393,4 +401,4 @@ Output:
|
|
|
393
401
|
|
|
394
402
|
---
|
|
395
403
|
|
|
396
|
-
MIT License
|
|
404
|
+
MIT License
|