UNPKG
dtp-tripwire-agent
Version:
latest (1.0.7)
1.0.7
A service for protecting your node against malicious attacks and scans.
dtp-tripwire-agent
/
dist
/
lib
/
tools.js
7 lines
•
220 B
JavaScript
View Raw
1
2
3
4
5
6
7
import
fs
from
"node:fs"
;
async
function
readJsonFile
(
path
) {
const
file =
await
fs.
promises
.
readFile
(path);
return
JSON
.
parse
(file.
toString
(
"utf-8"
)); }
export
{ readJsonFile };
//# sourceMappingURL=tools.js.map