node-pow

0.0.2 • Public • Published

Node Pow

Quick way to add a pow proxy file

Install

npm install --save-dev node-pow

Usage

The follwing examples result in: cat ~/.pow/site outputs 3000.

Pass name and port as arguments

require('node-pow')('site', 3000);

Or pass an express app with title and port.

var app = require('express')();
app.set('title', 'site');
app.set('port', 3000);
if ('development' === app.get('env')) require('node-pow')(app);

Tests

Warning: Tests currenly run using the actual filesystem.

mocha

Todo

  • change tests to use a fake filesystem
  • aysnc?

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    3
  • 0.0.1
    1
  • 0.0.0
    1

Package Sidebar

Install

npm i node-pow

Weekly Downloads

5

Version

0.0.2

License

BSD-2-Clause

Last publish

Collaborators

  • moudy