pinky-for-fun

Pinky wrappers for regular and asynchronous functions.

This library is not actively maintained anymore (bugfixes may still be released). The author has moved to working on data.future. If you want Promises/A+ check out bluebird
Last updated 8 years ago by killdream .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install pinky-for-fun 
SYNC missed versions from official npm registry.

Pinky for Fun Build Status Dependencies Status

Pinky wrappers for regular and asynchronous functions.

Platform support

Should work fine on ES3.

browser support

Example

var pinkyFun = require('pinky-for-fun')

var add = function(a, b){ 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){ ... })

Installing

Just grab it from NPM:

$ npm install pinky-for-fun

Documentation

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

$ npm install -g calliope
$ calliope build

Tests

You can run all tests using Mocha:

$ npm test

Licence

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

Current Tags

  • 0.2.1                                ...           latest (8 years ago)

4 Versions

  • 0.2.1 [deprecated]           ...           8 years ago
  • 0.2.0 [deprecated]           ...           8 years ago
  • 0.1.0 [deprecated]           ...           8 years ago
  • 0.0.0 [deprecated]           ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (2)
Dev Dependencies (7)

Copyright 2014 - 2016 © taobao.org |