UNPKG
dtfe
Version:
latest (2.0.0)
2.0.0
1.0.1
1.0.0
Does the file/folder exist? 🤔
github.com/abranhe/dtfe
abranhe/dtfe
dtfe
/
index.js
13 lines
(10 loc)
•
159 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
;
const
fs =
require
(
'fs'
);
module
.
exports
=
path
=>
{
try
{
if
(fs.
existsSync
(path)) {
return
true
; } }
catch
(_) {}
return
false
; };