Skip to content

Qix-/node-backcall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Puts callbacks at the beginning of your library calls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published