{"_id":"crc64-ecma182.js","_rev":"4-813b0e6fc9dab7d36722256a2556b5a6","name":"crc64-ecma182.js","description":"Pure JavaScript implement of CRC64-ECMA182 for Node.js.","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"crc64-ecma182.js","version":"1.0.0","description":"Pure JavaScript implement of CRC64-ECMA182 for Node.js.","main":"crc64_ecma182.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+https://github.com/souche-koumakan/crc64-ecma182.js.git"},"keywords":["crc64","crc64-ecma182"],"author":{"name":"XadillaX","email":"i@2333.moe"},"license":"MIT","bugs":{"url":"https://github.com/souche-koumakan/crc64-ecma182.js/issues"},"homepage":"https://github.com/souche-koumakan/crc64-ecma182.js#readme","devDependencies":{"mocha":"^3.5.0","should":"^13.0.1"},"gitHead":"9e467b599a389777e9fc43f312c49bd1b4dfbe6e","_id":"crc64-ecma182.js@1.0.0","_shasum":"0bf73bf2585b59c687f85773e7991df72d759f7a","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.1","_npmUser":{"name":"xadillax","email":"admin@xcoder.in"},"dist":{"shasum":"0bf73bf2585b59c687f85773e7991df72d759f7a","tarball":"https://registry.npmjs.org/crc64-ecma182.js/-/crc64-ecma182.js-1.0.0.tgz","integrity":"sha512-Xv9BgF+jIp2NwHRTgzBvCrqmjm0ZySsjpAXiQSyC9L0oMficvF8DaDe3bBnz2ARV879BAvwYm9/MRf8cHwP7Ww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3fWmcFDoXwfNic3kP90dcLr2DmkybutlppByOq60rowIgWU+l/dcy5bMydB5cmL0ij6bbw6V0lFx0PICL/ouKtgk="}]},"maintainers":[{"name":"xadillax","email":"admin@xcoder.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crc64-ecma182.js-1.0.0.tgz_1504802950679_0.9842048778664321"},"directories":{}},"2.0.1":{"name":"crc64-ecma182.js","version":"2.0.1","description":"Pure JavaScript implement of CRC64-ECMA182 for Node.js.","main":"crc64_ecma182.js","scripts":{"eslint":"eslint .","postinstall":"node scripts/postinstall.js","prepublishOnly":"mkdir -p dist && make js","test":"make test"},"repository":{"type":"git","url":"git+https://github.com/souche-koumakan/crc64-ecma182.js.git"},"keywords":["crc64","crc64-ecma182"],"author":{"name":"XadillaX","email":"i@2333.moe"},"license":"MIT","bugs":{"url":"https://github.com/XadillaX/crc64-ecma182.js/issues"},"homepage":"https://github.com/XadillaX/crc64-ecma182.js#readme","devDependencies":{"@types/node":"^20.4.9","eslint":"^8.46.0","eslint-config-egg":"^12.2.1","mocha":"^10.2.0","semver":"^7.5.4","should":"^13.2.3","typescript":"^5.1.6"},"types":"crc64_ecma182.d.ts","gitHead":"9d42a1a421cac88755d48c90241942c38f2c0330","_id":"crc64-ecma182.js@2.0.1","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-0MilvUGgEMIBQEipEDZ2VFMTdsReHVOPs4T82Ag5MUWRxtGsKvLuqRFrvuAyGLSOhu11trVddx7JPGzAaZOb1Q==","shasum":"0b8f610d0dd264de1dc1587a56004e72fba329ee","tarball":"https://registry.npmjs.org/crc64-ecma182.js/-/crc64-ecma182.js-2.0.1.tgz","fileCount":7,"unpackedSize":922121,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFw7lWk0JPq3ACuHHeagjYSUdbANLYv9tfPaXw+W937VAiBZpMlW0aRIhxMqh6AwxFe7vrP1Bn52eU/w7i8F1mRrUQ=="}]},"_npmUser":{"name":"xadillax","email":"admin@xcoder.in"},"directories":{},"maintainers":[{"name":"xadillax","email":"admin@xcoder.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crc64-ecma182.js_2.0.1_1691576466532_0.9073233898699236"},"_hasShrinkwrap":false},"2.0.2":{"name":"crc64-ecma182.js","version":"2.0.2","description":"Pure JavaScript implement of CRC64-ECMA182 for Node.js.","main":"crc64_ecma182.js","scripts":{"eslint":"eslint .","postinstall":"node scripts/postinstall.js","prepublishOnly":"mkdir -p dist && make js","test":"make test"},"repository":{"type":"git","url":"git+https://github.com/souche-koumakan/crc64-ecma182.js.git"},"keywords":["crc64","crc64-ecma182"],"author":{"name":"XadillaX","email":"i@2333.moe"},"license":"MIT","bugs":{"url":"https://github.com/XadillaX/crc64-ecma182.js/issues"},"homepage":"https://github.com/XadillaX/crc64-ecma182.js#readme","devDependencies":{"@types/node":"^20.4.9","eslint":"^8.46.0","eslint-config-egg":"^12.2.1","mocha":"^10.2.0","semver":"^7.5.4","should":"^13.2.3","typescript":"^5.1.6"},"types":"crc64_ecma182.d.ts","_id":"crc64-ecma182.js@2.0.2","gitHead":"5b9cf40317d3d6d6545c9981888075801f99c0b7","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-mBItyEN8IYWic/bTU1EgLOSjIOdwe3H+arZ3gGp5FJRpN+eVAPPA5iEHGkPlTbRZCemHb1zLJigQ4HXjUb7jAg==","shasum":"df30043ab7fc24326a14da69ecb3615d9d236d1d","tarball":"https://registry.npmjs.org/crc64-ecma182.js/-/crc64-ecma182.js-2.0.2.tgz","fileCount":7,"unpackedSize":921553,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICyioJWcyYHAxPFsm2RpBce6wwODApYjZx24TxMp3I8CAiEAzG/Go73OxIh7+Jh+xxN753ei92/acRq7M6X4hqlpwvw="}]},"_npmUser":{"name":"xadillax","email":"admin@xcoder.in"},"directories":{},"maintainers":[{"name":"xadillax","email":"admin@xcoder.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crc64-ecma182.js_2.0.2_1703234010042_0.2313871495735833"},"_hasShrinkwrap":false}},"readme":"# CRC64-ECMA182.js\n\nPure JavaScript implement of CRC64-ECMA182 for Node.js.\n\n> This package can be used as verify [Ali-OSS](https://help.aliyun.com/document_detail/43394.html) file.\n\n## Installation\n\n```sh\n$ npm install --save crc64-ecma182.js\n```\n\n## Usage\n\n### Calculate a Buffer\n\nYou can calculate the CRC64-ECMA182 value for a Node.js buffer or string:\n\n```js\ncrc64.crc64(buff[, prev]);\n```\n\n+ Parameters:\n    + `buff`: the buffer or string to be calculated;\n    + \\[`prev`]: if exists, `prev` indicates the previous CRC64-ECMA182 value; (**optional**)\n+ Returns: the result string indicates a uint64 value that calculated.\n\n\n```js\nconst crc64 = require(\"crc64-ecma182.js\");\nconst ret1 = crc64.crc64(\"123456789\");\nconst ret2 = crc64.crc64(new Buffer(\"123456789\"));\nconst ret3 = crc64.crc64(\"123456789\", \"0\");\nconst ret4 = crc64.crc64(new Buffer(\"123456789\"), \"0\");\n\n// ret1 ~ ret2 all equals to:\n//\n//   '11051210869376104954'\n```\n\n### Calculate a file\n\nYou can calculate the CRC64-ECMA182 value for a file:\n\n```js\ncrc64.crc64File(filename, callback);\n```\n\n+ Parameters:\n    + `filename`: the file's name that to be calculated;\n    + `callback`: the callback function which receives two arguments `err` and `ret`.\n\n```js\ncrc64.crc64File(path.join(__dirname, \"pic.png\"), function(err, ret) {\n    console.log(err, ret);\n\n    // a possible result:\n    //\n    //   undefined 5178350320981835788\n});\n```\n\n## Contribution\n\nYou're welcome to make pull-requests.\n","maintainers":[{"name":"xadillax","email":"admin@xcoder.in"}],"time":{"modified":"2023-12-22T08:33:30.422Z","created":"2017-09-07T16:49:10.943Z","1.0.0":"2017-09-07T16:49:10.943Z","2.0.1":"2023-08-09T10:21:06.731Z","2.0.2":"2023-12-22T08:33:30.252Z"},"homepage":"https://github.com/XadillaX/crc64-ecma182.js#readme","keywords":["crc64","crc64-ecma182"],"repository":{"type":"git","url":"git+https://github.com/souche-koumakan/crc64-ecma182.js.git"},"author":{"name":"XadillaX","email":"i@2333.moe"},"bugs":{"url":"https://github.com/XadillaX/crc64-ecma182.js/issues"},"license":"MIT","readmeFilename":"README.md"}