UNPKG
playwright-aws-lambda
Version:
latest (0.11.0)
0.11.0
0.10.0
0.9.0
0.8.0
0.7.0
0.6.0
0.5.2
0.5.1
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.0
0.1.2
Support for running Microsoft's Playwrite on AWS Lambda and Google Cloud functions
playwright-aws-lambda
/
dist
/
src
/
util
/
fileExists.js
14 lines
(13 loc)
•
296 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
const
fs_1 =
require
(
"fs"
);
async
function
fileExists
(
path
) {
try
{
await
fs_1.
promises
.
access
(path);
return
true
; }
catch
(err) {
return
false
; } }
exports
.
default
= fileExists;