Bidirectional and unidirectional object streams for Node.js