Miss any of our Open RFC calls?Watch the recordings here! »

hostenv

3.13.0 • Public • Published

hostenv

Travis CI Build Status NPM version NPM downloads Dependency Status Dev Dependency Status
GitHub Sponsors donate button Patreon donate button Flattr donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button Wishlist browse button

Exports the correct PORT and HOSTNAME values for Heroku, AppFog, CloudFoundry, OpenShift, and other service environments

Supports:

Usage

const hostenv = require('hostenv')
const PORT = hostenv.PORT || 8080
const HOSTNAME = hostenv.HOSTNAME || '0.0.0.0'

Install

npm

  • Install: npm install --save hostenv
  • Import: import * as pkg from ('hostenv')
  • Require: const pkg = require('hostenv')

Editions

This package is published with the following editions:

  • hostenv aliases hostenv/source/index.js
  • hostenv/source/index.js is ESNext source code for Node.js 10 || 12 || 13 || 14 with Require for modules

History

Discover the release history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

GitHub Sponsors donate button Patreon donate button Flattr donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button Wishlist browse button

Contributors

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

License

Unless stated otherwise all works are:

and licensed under:

Install

npm i hostenv

DownloadsWeekly Downloads

485

Version

3.13.0

License

MIT

Unpacked Size

20.2 kB

Total Files

6

Last publish

Collaborators

  • avatar
  • avatar