hostenv v3.13.0-next.1599989652.702e575302b8f8b6e41a87f58e7c935d48358b68
Exports the correct PORT and HOSTNAME values for Heroku, AppFog, CloudFoundry, OpenShift, and other service environments
Supports:
$PORT
,$HOSTNAME
- Heroku, Nodejitsu$OPENSHIFT_NODEJS_PORT
,$OPENSHIFT_NODEJS_IP
- OpenShift's Official Node.js Cartridge - https://github.com/wshearn/openshift-origin-cartridge-nodejs$OPENSHIFT_IOJS_PORT
,$OPENSHIFT_IOJS_IP
- https://github.com/kyrylkov/openshift-iojs - https://github.com/connyay/openshift-iojs$PORT
,$VCAP_APP_PORT
,$VCAP_APP_HOST
- CloudFoundry$VMC_APP_PORT
,$VMC_APP_HOST
- AppFog (Legacy CloudFoundry)
Usage
const hostenv = require('hostenv')
const PORT = hostenv.PORT || 8080
const HOSTNAME = hostenv.HOSTNAME || '0.0.0.0'
npm
Discover the release history by heading on over to the HISTORY.md file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md file.
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md file.
Unless stated otherwise all works are:
and licensed under:
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago