mirror of
https://github.com/danbulant/bpm
synced 2026-05-19 04:08:47 +00:00
Simple config reader
This commit is contained in:
parent
0034f39e81
commit
c1bd3f2c90
1 changed files with 7 additions and 0 deletions
7
modules/config.js
Normal file
7
modules/config.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
const fs = require("fs");
|
||||
|
||||
module.exports = ()=>{
|
||||
if(!global.config)
|
||||
global.config = JSON.parse(fs.readFileSync(__dirname + "/../packages/config.json"));
|
||||
return global.config;
|
||||
}
|
||||
Loading…
Reference in a new issue