npm install zpipe
|26||downloads in the last week|
|70||downloads in the last month|
|Version||1.0.2 last updated 2 years ago|
|Keywords||compression, zlib, deflate|
zpipe is not a pipe.
The famous pipe. How people reproached me for it! And yet, could you stuff my pipe? No, it's just a representation, is it not? So if I had written on my picture "This is a pipe," I'd have been lying!
- Help users suffering from poor upload bandwidth
- Currently no compression API exposed in browsers
<script> include ...
With require() ...
var zpipe = require("zpipe"); var deflated = zpipe.deflate("the balloon"); var inflated = zpipe.inflate(deflated); // "the balloon"
Install the package with npm.
$ npm install zpipe
Alternatively just add it to your Ender packages.
$ ender add zpipe
But it's so big!
Ok 201 KB for
zpipe.min.js is big, however it comes in at 57.6 KB gzipped. This is acceptable.
Test against node zlib:
$ make test # Run the tests
Run the test in the browser by pointing your browser to
z'pipe operates on octet strings only, UTF-16 characters will have their high byte masked.
- Support stream compression through workers