When I run the script, it generated a
.gz file as expected. However, when I decompress this file, I get a
.cpgz file. If I try and decompress that, it just generates the original file again. What am I doing wrong?
gzip, but are using
deflate instead. :)
zlib.gzip ..., that works fine:
% coffee coffee> zlib = require('zlib'); 'ok' 'ok' coffee> fs = require('fs'); 'ok' 'ok' coffee> zlib.gzip('qweqweqweqwe', (_, buf) -> fs.writeFile('/tmp/test.gz', buf)) undefined % zcat /tmp/test.gz qweqweqweqwe
There is currently no discussion for this recipe.
This recipe can be found in it's original form on Stack Over Flow.