This module help you to get parameters from the config json file.
npm install gh-get-config --save
const getConfig = require('gh-get-config');
getConfig('connect', __dirname, './config.json');
here used exemple path: ./config.json, you can use else.
let port = getConfig('port');
you can not use 'connect' as parameter of function
{
"host": "localhost",
"port": "3000"
}