UNPKG
mochapack
Version:
latest (2.1.5)
2.1.5
2.1.4
2.1.2
2.1.1
2.1.0
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.1.15
1.1.14
1.1.13
1.1.12
1.1.11
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
mocha cli with webpack support
github.com/sysgears/mochapack
sysgears/mochapack
mochapack
/
src
/
util
/
exists.ts
13 lines
(10 loc)
•
234 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
fs
from
'fs'
/* eslint-disable import/prefer-default-export */
export
function
existsFileSync
(
file
:
string
):
boolean
{
try
{ fs.
accessSync
(file, fs.
constants
.
F_OK
)
return
true
}
catch
(e) {
return
false
} }