0.1.0 • Published 12 years ago

convention v0.1.0

Weekly downloads
14
License
-
Repository
github
Last release
12 years ago

===============================================================================

Convention

Module to wrap/unwrap functions in the node (err, results) convention.

var c = require('convention')

c.wrap(errorHandler, successHandler)

takes two functions, one to handle errors, the other results, and returns them combined.

c.unwrap(nodeFn)

Takes a node style function, and returns an object with an e property for the errorHandler and an s property for the successHandler.

0.1.0

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago