{"_id":"adler32-js","_rev":"9-9735a99d41128cd10f95e1fc2fa6eaa6","name":"adler32-js","time":{"modified":"2022-06-13T02:26:35.166Z","created":"2014-09-13T19:11:01.901Z","1.0.0":"2014-09-13T19:11:01.901Z","1.0.1":"2014-09-13T19:14:21.488Z","1.0.2":"2014-09-13T19:32:45.347Z"},"maintainers":[{"name":"jwalton","email":"npm@lucid.thedreaming.org"}],"dist-tags":{"latest":"1.0.2"},"description":"adler32-js ----------","readme":"adler32-js\n----------\n\nThis is a coffee-script port of adler32.c from zlib, written by Mark Adler.  Port by Jason Walton.\n\nInstallation\n------------\n\n`npm install --save adler32-js`\n\nUsage\n-----\n\nadler32-js complies to the [Hash interface](http://nodejs.org/api/crypto.html#crypto_class_hash)\nfrom the node.js crypto package:\n\n```\nAdler32 = require('adler32-js');\nhash = new Adler32();\nhash.update('Hello world!');\nconsole.log(\"Digest: \", hash.digest('hex'));\n```\n\nUnlike crypto Hash objects, Adler32 object can be recycled using the `reset()` method.\n\nIf you are after the raw integer value, you can also use:\n\n```\nhash = new Adler32();\nhash.update('Hello world!');\nconsole.log(\"Digest as int: \", hash.result());\n```\n\nHelper functions are also available for hashing strings, files, and streams:\n\n```\nAdler32.fromStream(stream, {encoding: 'hex'}, function(err, result) {\n    console.log(\"Digest\", result);\n});\n\nAdler32.fromFile('./foo.txt', {encoding: 'hex'}, function(err, result) {\n    console.log(\"Digest\", result);\n});\n\nresult = Adler32.fromFileSync('./foo.txt', {encoding: 'hex'});\n\nresult = Adler32.fromString('Hello world!');\n```\n\n","versions":{"1.0.1":{"name":"adler32-js","version":"1.0.1","repository":{"type":"git","url":"https://github.com/jwalton/adler32.git"},"keywords":["checksum","hash","adler","adler32","adler-32"],"main":"./lib/adler32.coffee","devDependencies":{"coffee-script":"~1.7.1","mocha":"~1.17.1","should":"~3.0.1","through":"^2.3.4"},"scripts":{"prepublish":"coffee --compile --output lib/ src/","build":"coffee --compile --output lib/ src/","test":"mocha"},"gitHead":"dc94a0673c8df6667e7f6edcd376347ed3b8ee37","description":"adler32-js ----------","bugs":{"url":"https://github.com/jwalton/adler32/issues"},"homepage":"https://github.com/jwalton/adler32","_id":"adler32-js@1.0.1","_shasum":"a7b0266d3c6c65e066fa91d49f9adb0a3d303881","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jwalton","email":"npm@lucid.thedreaming.org"},"maintainers":[{"name":"jwalton","email":"npm@lucid.thedreaming.org"}],"dist":{"shasum":"a7b0266d3c6c65e066fa91d49f9adb0a3d303881","tarball":"https://registry.npmjs.org/adler32-js/-/adler32-js-1.0.1.tgz","integrity":"sha512-SdAQB5dLGx3+4ssdIFW5cz3A3gjPf0N3mVtI8QrQCjUUo9nsI2U4o/FZWPDTpq60Z0dDQhik9HOijL/43oe3mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFbQ2FqMZLROsv+TLzfRNykzOE0RKAwv1r/+1KC/9qXYAiEAgaZLQoQrnpQkKLKpagUcA0FFF49ceeSwRxlq64dkr98="}]}},"1.0.2":{"name":"adler32-js","version":"1.0.2","repository":{"type":"git","url":"https://github.com/jwalton/adler32.git"},"keywords":["checksum","hash","adler","adler32","adler-32"],"main":"./lib/adler32","devDependencies":{"coffee-script":"~1.7.1","mocha":"~1.17.1","should":"~3.0.1","through":"^2.3.4"},"scripts":{"prepublish":"coffee --compile --output lib/ src/","build":"coffee --compile --output lib/ src/","test":"mocha"},"gitHead":"7027faf35359706a0e57fd060165546a5c07322d","description":"adler32-js ----------","bugs":{"url":"https://github.com/jwalton/adler32/issues"},"homepage":"https://github.com/jwalton/adler32","_id":"adler32-js@1.0.2","_shasum":"1fdc6cf6e38060b9dbe135c42dd301ee51a4fa4a","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jwalton","email":"npm@lucid.thedreaming.org"},"maintainers":[{"name":"jwalton","email":"npm@lucid.thedreaming.org"}],"dist":{"shasum":"1fdc6cf6e38060b9dbe135c42dd301ee51a4fa4a","tarball":"https://registry.npmjs.org/adler32-js/-/adler32-js-1.0.2.tgz","integrity":"sha512-VAKASCXgg3MxscMoia2EFUYUYQVG6RqHW53OMYNrA0RndLoZhm5TtiMh76Oe7ggzmNt0tf+Y4OTz7iu1Zb4HIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFKgoVCMfSryan3IwdQXVbUFyy17Cva5lkJuXehpxuiSAiBgXYmUu4wAQ8FkUWqn5+8xQVZ0bBaAQV46lJSs9hm5PA=="}]}}},"homepage":"https://github.com/jwalton/adler32","keywords":["checksum","hash","adler","adler32","adler-32"],"repository":{"type":"git","url":"https://github.com/jwalton/adler32.git"},"bugs":{"url":"https://github.com/jwalton/adler32/issues"},"readmeFilename":"README.md"}