Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

socialchorus/node-porter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-porter

Determines the port from the env, argv or a default

Install

In your package.json install dependency via the git option:

// ... beginning of package.json dependencies: { "porter": "git://github.com/socialchorus/node-porter.git#master" } // ... end of package.json

Usage

var Porter = require('porter');
var portNumber = (new Porter()).number();
// then listen on your port

About

Determines the port from the env, argv or a default

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published