Open
Description
One thing that frustrates me about the gobble API is that I can't figure out how to compose things. Specifically, I want to do something like this:
var foo = function(node){
return node.transform('stuff').transform('more-stuff');
}
gobble('src').pipe(foo).moveTo('place');
gobble('otherSrc').pipe(foo).moveTo('otherPlace');
I think pipe
is probably a very simple function on Node
that looks something like:
pipe(f){
return f(this);
}
So...is there:
a) a way I'm missing to accomplish this?
b) a way of hacking this in from userspace (I couldn't figure out how to monkey patch it)?
c) a chance you'd take that addition as a PR?
Metadata
Metadata
Assignees
Labels
No labels