turtles0.0.1 • Public • Published
For those unfamiliar with dnode. dnode is a really great way to treat your server like a module.
pipe a file
var t1 =;t2 = ;t2;t2;
todo: shoe/engine.io-stream example
the api extends dnode with exactly one method
- returns a duplex stream
- a stream is not cleaned up until both sides close. if you dont use one side it will be closed automatically for you.
- if you only read from this stream and it ends is will close the write side for you and cleanup the stream.
- if you only write from this stream and it ends is will close the read side for you and cleanup the stream.
- you may pass these as data arguments to callbacks
the api reserves the name of one callback _turtles
@substack for making awesome stuff! and for hopefully giving me permission to use the turtle picture.
dnode over dnode
var turtles = ;var value;var oneTurtle =var twoTurtle = ;twoTurtle;oneTurtle;