Delicious functions for Node developers.
JavaScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitattributes
.gitignore
.npmignore
LICENSE
README.md
package.json
pho.sublime-project

README.md

pho

Delicious functions for the hungry node.js developer.

Installation:

$ npm install pho

API

var pho = require( "pho" );

or if you prefer to use with underscore

var _   = require( "underscore" )
  , pho = require( "pho" ).mixin( _ );

Now functions exported by pho are available on _ (underscore) object.

onErr( err, callback )

If err is defined, then callback is called with err as a parameter. Returns true if err is defined and false otherwise.

Example:

If there is an error, then done is called and nextStep is never executed.

pho.onErr( err, done ) || nextStep();

is equivalent to

if ( err ) {

    return done( err );
}

nextStep();

Changelog

  • 0.1.1 - Remove shrinkwrap file.

  • 0.1.0 - Initial release.