hostenv v4.3.0-next.1700013100.e0a55f5332ba8a6a3a804110665a8d24a955f461
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
- 1, 2$OPENSHIFT_IOJS_PORT
,$OPENSHIFT_IOJS_IP
- 1, 2$PORT
,$VCAP_APP_PORT
,$VCAP_APP_HOST
- CloudFoundry$VMC_APP_PORT
,$VMC_APP_HOST
- AppFog (Legacy CloudFoundry)
Usage
const { PORT, HOSTNAME } = require('hostenv')
const port = PORT || 8080
const hostname = 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
1 year 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
5 years ago
6 years ago
6 years ago
6 years ago
7 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago