I think there are simpler, single-file zlibs that you can just push data into one chunk at a time.
pipe can go both in and out of files as well, but the implementation may not be totally node-compatible - if the target has a write function it'll get called repeatedly with chunks of data. I'm not sure what you're trying because obviously you're piping out of the filesystem right now for your HTTP server.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I think there are simpler, single-file zlibs that you can just push data into one chunk at a time.
pipe
can go both in and out of files as well, but the implementation may not be totally node-compatible - if the target has awrite
function it'll get called repeatedly with chunks of data. I'm not sure what you're trying because obviously you're piping out of the filesystem right now for your HTTP server.