bolt-internal-config
v1.0.3
Published
internal module used to get the current configuration under which Bolt is running
Downloads
2
Readme
bolt-internal-config
Internal Bolt module used to get the current configuration under which Bolt is running.
Installation
$ npm install bolt-internal-config
Use
var config = require('bolt-internal-config')
var port_bolt_is_running_on = config.getPort();
Note
This is an internal module and should not be used in 3rd party apps.
To get the current config send a GET request to /api/system/config
.
Note that /api/system/config
route is installed by the Bolt module bolt_module_system
.