pinky-for-fun

Pinky wrappers for regular and asynchronous functions.

Pinky for Fun

Pinky wrappers for regular and asynchronous functions.

Should work fine on ES3.

var pinkyFun = require('pinky-for-fun')
 
var add = function(ab){ return a + b }
var addP = pinkyFun.lift(add)
 
addP(2, 3).then(function(result){ console.log(result) })
 
var readP = pinkyFun.liftNode(fs.readFile)
readP('foo.txt', 'utf-8').then(function(data){ ... }, function(err){ ... })

Just grab it from NPM:

$ npm install pinky-for-fun

A quick reference of the API can be built using Calliope:

$ npm install -g calliope
$ calliope build

You can run all tests using Mocha:

$ npm test

MIT/X11. ie.: do whatever you want.