Load a local config file (.js or .json) as a global module.
require your local config file easily from anywhere in your project
without having to navigate directories.
var config = require'../../../../config';
the local config way
var config = require'local-config';
npm install local-config
config.json file in your project root.
Or you can create
config/ folder (with an
.js files should export
your config in the format which you would prefer.
moduleexports =environment: 'live'password: 'y0uW0ntGu355'