1.0.3 • Published 7 years ago

bolt-internal-config v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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.