UNPKG
@jsmrcaga/keep
Version:
latest (0.5.2)
0.5.2
0.5.1
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0
A simple password manager
github.com/jsmrcaga/keep
jsmrcaga/keep
@jsmrcaga/keep
/
global
/
config.js
12 lines
(9 loc)
•
226 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
const
fs =
require
(
'fs'
);
let
config =
null
;
module
.
exports
=
(
file=
'./config.json'
) =>
{
if
(!config) {
console
.
log
(
'[KEEP] Reading config from'
, file); config =
JSON
.
parse
(fs.
readFileSync
(file)); }
return
config; };