0.0.5 • Published 12 years ago
yuemeng v0.0.5
This is package is named after my friend yue meng's name. with this you can easily write code need to be processed one by one, every next should get data from the previous.
Just enjoy it!
test: ->
{fn, pn, tn} = require './fn'
a = fn('a')()
b = fn('b')()
c = fn('c')()
d = fn('d')()
a.i '/static/flare.json'
a.m d3.json
b.p (x) -> x.name
b.m (x, y) ->
console.log '2 seconds later'
setTimeout ->
y.call null, null, x
, 2000
c.p (x)-> x[0..3]
d.p (x) -> x.length
# pn a, b, c, dE
tn -> a -> b -> c -> d
Thanks for the help from him!