0.1.2 • Published 10 years ago

backcall v0.1.2

Weekly downloads
5
License
mit
Repository
github
Last release
10 years ago

node-backcall

Turns fn(..., cb) into fn(cb, ...).

Why?

Here's why:

someFn = (cb) ->
  async.rwaterfall cb, [
    (cb) -> fn1 cb
    (cb) -> fn2 cb
  ]

is prettier than

someFn = (cb) ->
  async.waterfall [
    (cb) -> fn1 cb
    (cb) -> fn2 cb
  ], cb

for methods that take callbacks.

It's minor, but it's a nuisance.