{"name":"compress-buffer-crc32","description":"Synchronous Buffer compression library for Node.js","homepage":"http://egorfine.github.com/node-compress-buffer","bugs":{"url":"http://github.com/egorFiNE/node-compress-buffer/issues"},"version":"1.2.9","author":{"name":"Egor Egorov"},"repository":{"type":"git","url":"http://github.com/egorfine/node-compress-buffer.git"},"main":"./index","devDependencies":{"nodeunit":">=0.5.4"},"scripts":{"install":"node-gyp rebuild"},"gypfile":true,"gitHead":"9ddf1cb8651d6710d266b0e77af035ba2b41bd38","_id":"compress-buffer-crc32@1.2.9","_shasum":"f7a2f9229baab6d77058e4dedd22ca094d555ae7","_from":".","_npmVersion":"2.1.11","_nodeVersion":"0.8.25","_npmUser":{"name":"kuebk","email":"kuebzky@gmail.com"},"maintainers":[{"name":"soymo","email":"grzegorz.lyczba@gmail.com"},{"name":"dreamlab","email":"janecki@gmail.com"},{"name":"kuebk","email":"kuebzky@gmail.com"},{"name":"ghanto","email":"lax@lax.net.pl"},{"name":"mkwinta2","email":"kwinta.mateusz@gmail.com"}],"dist":{"shasum":"f7a2f9229baab6d77058e4dedd22ca094d555ae7","tarball":"http://registry-npm.ywwl.com/compress-buffer-crc32/download/compress-buffer-crc32-1.2.9.tgz","integrity":"sha512-RD0uNL41i+kQ+wgaE2tM/dEB1H8FRgEPN/t82lOUHAXgNJL5/CsAW50G+DY1ChhZWUmYvk/hiqnA3RwKegknxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHToAZqx0rSQd8UQpQGNMqREseMg/d7Y8cYGWXx1orzCAiEAvN5GHucZ78E5ehW4nTnLNwcSFD27WpstHa3VhzGJC1E="}],"size":7552,"noattachment":false,"key":"/compress-buffer-crc32/-/compress-buffer-crc32-1.2.9.tgz"},"directories":{},"readme":"# node-compress-buffer \n\nSynchronous Buffer compression library for Node.js.\n\n\n## Synopsis\n\n```javascript\ncompress = require('compress-buffer').compress;\nuncompress = require('compress-buffer').uncompress;\n\nvar rawData = fs.readFileSync(\"/etc/passwd\");\n\nvar compressed   = compress(rawData);\nvar uncompressed = uncompress(compressed);\n\nuncompressed == rawData // true!\n```\n\n\n## Why? \n\nFor the sake of the KISS principle. Most of the time you don't need a streaming compression, you need to compress an existing and already complete data. \n\n\n## Options \n\n<code>compress()</code> takes two arguments: the data (must be a <code>Buffer()</code>) and optional compression level which must be within 1..9. It returns compressed <code>Buffer()</code> or <code>undefined</code> on error.\n\n<code>uncompress()</code> takes a single argument: the data (must be a <code>Buffer()</code>) and returns uncompressed <code>Buffer()</code> or <code>undefined</code> on error.\n\nBoth functions could throw exceptions in the following cases:\n\n* zlib initialisation fails;\n* first argument is not a <code>Buffer</code> instance.\n\n\n## Installation\n\n\tnpm install compress-buffer\n\nor\n\n\tnpm install .\n\n\n## License\n\nSee LICENSE file. Basically, it's a kind of \"do-whatever-you-want-for-free\" license.\n\n\n## Thanks to \n\n* A lot of thanks for important suggestions goes to Konstantin Käfer who implemented a nice similar module node-zlib (https://github.com/kkaefer/node-zlib) earlier than me;\n* Oleg Kertanov, pccowboy, addisonj, David Swift\n\n## Author\n\nEgor Egorov <me@egorfine.com>.\n\n","publish_time":1418214401816,"_cnpm_publish_time":1418214401816,"dist-tags":{"latest":"1.2.12"}}