UNPKG
humanifyjs
Version:
latest (2.2.2)
2.2.2
2.2.1
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.3
2.0.1
2.0.0
2.0.0-alpha5
2.0.0-alpha4
2.0.0-alpha3
2.0.0-alpha2
2.0.0-alpha1
> Deobfuscate Javascript code using LLMs ("AI")
humanifyjs
/
dist
/
src
/
file-utils.js
8 lines
(7 loc)
•
200 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{ existsSync }
from
"fs"
;
import
{ err }
from
"./cli-error.js"
;
export
function
ensureFileExists
(
filename
) {
if
(!
existsSync
(filename)) {
err
(
`File
${filename}
not found`
); } }