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
/
getConfig.js
13 lines
(12 loc)
•
263 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
*
as
fs
from
"fs/promises"
;
import
refs
from
"../refs.js"
;
async
function
getConfig
(
) {
const
configContent =
await
fs.
readFile
(
`
${refs.rootDir}
/config.json`
,
"utf-8"
);
return
JSON
.
parse
(configContent); }
export
{ getConfig
as
default
};