4.3.0-next.1700013100.e0a55f5332ba8a6a3a804110665a8d24a955f461 • Published 2 years ago

hostenv v4.3.0-next.1700013100.e0a55f5332ba8a6a3a804110665a8d24a955f461

Weekly downloads
307
License
Artistic-2.0
Repository
github
Last release
2 years ago

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

Complete API Documentation.

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:

4.9.0

1 year ago

4.8.0

1 year ago

4.7.0

1 year ago

3.19.0

2 years ago

4.4.0

2 years ago

4.6.0

1 year ago

4.0.1

2 years ago

4.0.0

2 years ago

4.2.0

2 years ago

4.5.0

2 years ago

4.1.0

2 years ago

4.3.0

2 years ago

3.18.0

4 years ago

3.16.0

4 years ago

3.15.0

5 years ago

3.14.0

5 years ago

3.13.0

5 years ago

3.12.0

5 years ago

3.11.0

5 years ago

3.10.0

5 years ago

3.9.0

5 years ago

3.8.0

5 years ago

3.7.0

5 years ago

3.6.0

5 years ago

3.4.0

5 years ago

3.5.0

5 years ago

3.3.0

5 years ago

3.2.0

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.3.0

5 years ago

2.2.0

6 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.6

7 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago