UNPKG
@worldapi/cli
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.1.0
0.0.24
0.0.23
0.0.22
0.0.21
0.0.2
0.0.1
0.0.1-alpha
A productivity focused CLI and terminal for WorldAPI.
github.com/worldapi-io/cli
worldapi-io/cli
@worldapi/cli
/
dist
/
functions
/
checkFolderExistance.js
12 lines
(11 loc)
•
211 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
*
as
fs
from
"fs/promises"
;
const
checkFolderExistance
=
async
(
path
) => {
try
{
await
fs.
mkdir
(path, {
recursive
:
true
}); }
catch
(error) {
return
; } };
export
{ checkFolderExistance };