{"_id":"tos-crc64-js","_rev":"5-f0784c6d7f54c9c59d09e14e1d673e42","name":"tos-crc64-js","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1-alpha.1":{"name":"tos-crc64-js","version":"0.0.1-alpha.1","description":"Implement of CRC64-ECMA182 for Node.js","main":"crc64_ecma182.js","scripts":{"gen-cmake":"node-gyp configure -- -f cmake && cp -rf build build-for-cmake","test":"istanbul cover _mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","install":"node-gyp rebuild"},"repository":{"type":"git","url":"git+https://github.com/MoonBall/crc64_ecma182.git"},"keywords":["crc64-ecma182","crc64"],"author":{"name":"MoonBall","email":"gangc.cxy@foxmail.com"},"license":"MIT","bugs":{"url":"https://github.com/MoonBall/crc64_ecma182/issues"},"homepage":"https://github.com/MoonBall/crc64_ecma182#readme","dependencies":{"nan":"^2.7.0"},"devDependencies":{"coveralls":"^2.13.1","istanbul":"^0.4.5","mocha":"^3.5.0","should":"^12.0.0"},"_id":"tos-crc64-js@0.0.1-alpha.1","gypfile":true,"gitHead":"347bc34080c6855f9c685fb2f95d467bfe773dc1","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-d52P6JVuK0wc6B3qO32W4kXJ2yxn5Nfl8gB3SHqXuSPpCHVgx/dy+YEUH8/7FRHIUfWmIjjlAQ8lhI6t9VmlMQ==","shasum":"e3c0e76bc80da9ebb1c25b8bda363a472232e33f","tarball":"https://registry.npmjs.org/tos-crc64-js/-/tos-crc64-js-0.0.1-alpha.1.tgz","fileCount":62,"unpackedSize":794854,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHaqVBcGHBl8O+oum/SVcV+Xs33fZWC4sDamNFzUE2rSAiBrjCVu7u+tq1hgQUHmo5DAJM/kWFS+xYUIAqCHjm0qeQ=="}]},"_npmUser":{"name":"moonball","email":"gangc.cxy@foxmail.com"},"directories":{},"maintainers":[{"name":"moonball","email":"gangc.cxy@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tos-crc64-js_0.0.1-alpha.1_1709178120853_0.3931061630791888"},"_hasShrinkwrap":false},"0.0.1-alpha.2":{"name":"tos-crc64-js","version":"0.0.1-alpha.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 && node ./scripts/transform.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":{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/plugin-transform-logical-assignment-operators":"^7.23.4","@babel/plugin-transform-optional-chaining":"^7.23.4","@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":"tos-crc64-js@0.0.1-alpha.2","gitHead":"5b9cf40317d3d6d6545c9981888075801f99c0b7","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-+2A5opcufv/XFFjz/4JNwZakMjTWaRlmXDkEjF4mVZznMeEz0Tp9nXa2eVg45umwMiV5OPEOOP7nOMt5d5ZUPg==","shasum":"66fb8bba8b203c57768fbd43defbe02ce3da3630","tarball":"https://registry.npmjs.org/tos-crc64-js/-/tos-crc64-js-0.0.1-alpha.2.tgz","fileCount":8,"unpackedSize":2263729,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDf4PfMumqk/iQquJogsEdNBKzwGRDRGp+LxMdwcfrzjgIgQlNI+YXBGj0MPj7b9txL3iurWWe3cAsoun2hd44Dl3E="}]},"_npmUser":{"name":"moonball","email":"gangc.cxy@foxmail.com"},"directories":{},"maintainers":[{"name":"moonball","email":"gangc.cxy@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tos-crc64-js_0.0.1-alpha.2_1709548457235_0.5994950865418489"},"_hasShrinkwrap":false},"0.0.1-alpha.3":{"name":"tos-crc64-js","version":"0.0.1-alpha.3","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 && node ./scripts/transform.js","test":"make test"},"repository":{"type":"git","url":"git+https://github.com/MoonBall/crc64-ecma182.js.git"},"keywords":["crc64","crc64-ecma182"],"author":{"name":"MoonBall","email":"gangc.cxy@foxmail.moe"},"license":"MIT","bugs":{"url":"https://github.com/MoonBall/crc64-ecma182.js/issues"},"homepage":"https://github.com/MoonBall/crc64-ecma182.js#readme","devDependencies":{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/plugin-transform-logical-assignment-operators":"^7.23.4","@babel/plugin-transform-optional-chaining":"^7.23.4","@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":"tos-crc64-js@0.0.1-alpha.3","gitHead":"83f433a60dc9ff33d243790e179f7f7c5db05302","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-8JS8Ahcp3XnqQU+ps0bqiwHVgrSfu6K3ctqjC23J+yWIHEquIOL1u1EAwSiqUOUJJup2Cyb0W+oMWU0GZOo28A==","shasum":"456061c8f5cd70aee41a7bcbe2584b7f6804623d","tarball":"https://registry.npmjs.org/tos-crc64-js/-/tos-crc64-js-0.0.1-alpha.3.tgz","fileCount":10,"unpackedSize":2265664,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQqUU4+Bw/yXTEiMnpaheVs3Ddty5A5cHpPe/SnlQRSgIhAL4Lr9R6dmiRQ82c/S1iiYrROe4gZAGzLoYJ4cHwqnXi"}]},"_npmUser":{"name":"moonball","email":"gangc.cxy@foxmail.com"},"directories":{},"maintainers":[{"name":"moonball","email":"gangc.cxy@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tos-crc64-js_0.0.1-alpha.3_1709549163029_0.8786604201965849"},"_hasShrinkwrap":false},"0.0.1-alpha.4":{"name":"tos-crc64-js","version":"0.0.1-alpha.4","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 && node ./scripts/transform.js","test":"make test"},"repository":{"type":"git","url":"git+https://github.com/MoonBall/crc64-ecma182.js.git"},"keywords":["crc64","crc64-ecma182"],"author":{"name":"MoonBall","email":"gangc.cxy@foxmail.moe"},"license":"MIT","bugs":{"url":"https://github.com/MoonBall/crc64-ecma182.js/issues"},"homepage":"https://github.com/MoonBall/crc64-ecma182.js#readme","devDependencies":{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/plugin-transform-logical-assignment-operators":"^7.23.4","@babel/plugin-transform-optional-chaining":"^7.23.4","@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":"tos-crc64-js@0.0.1-alpha.4","gitHead":"3d6813db16c2cf4f8544fb0363d421fda2189d3f","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-ZvneLZ+/kxMYfY0fdj8UMobXeu5dYYsvCjzMoqjLctdCJvNB+Y6V20pT0H70TO07zYeRkqcWkVJStNwbEB1iTw==","shasum":"e2eeca6087296c330ce56463f91942ad8cb96f5e","tarball":"https://registry.npmjs.org/tos-crc64-js/-/tos-crc64-js-0.0.1-alpha.4.tgz","fileCount":10,"unpackedSize":2265490,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCij7H9RdGFEi/jzRCT/MWyDDMfvkwWChohZONve6N6wIgN2jC+saH0EcyJw28FoDfyqV2qFGKcB4Of1X/KdTm21E="}]},"_npmUser":{"name":"moonball","email":"gangc.cxy@foxmail.com"},"directories":{},"maintainers":[{"name":"moonball","email":"gangc.cxy@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tos-crc64-js_0.0.1-alpha.4_1709572938189_0.6814910615214136"},"_hasShrinkwrap":false},"0.0.1-alpha.5":{"name":"tos-crc64-js","version":"0.0.1-alpha.5","description":"Pure JavaScript implement of CRC64-ECMA182 for Node.js.","main":"crc64_ecma182.js","scripts":{"eslint":"eslint .","postinstall":"node scripts/postinstall.js","build":"mkdir -p dist && make js && node ./scripts/transform.js","prepublishOnly":"npm run build","test":"make test"},"repository":{"type":"git","url":"git+https://github.com/MoonBall/crc64-ecma182.js.git"},"keywords":["crc64","crc64-ecma182"],"author":{"name":"MoonBall","email":"gangc.cxy@foxmail.moe"},"license":"MIT","bugs":{"url":"https://github.com/MoonBall/crc64-ecma182.js/issues"},"homepage":"https://github.com/MoonBall/crc64-ecma182.js#readme","devDependencies":{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/plugin-transform-logical-assignment-operators":"^7.23.4","@babel/plugin-transform-optional-chaining":"^7.23.4","@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","licenseText":"MIT License\n\nCopyright (c) 2023 MoonBall\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"tos-crc64-js@0.0.1-alpha.5","dist":{"shasum":"31678b43bcaab163a788f075ea959b9222013e7f","integrity":"sha512-es3l/GOjZ2HfVFyGfqe35/1hybVC+pBbk7FI86VWGCkBBGxYLj+okcHqEypDDPIlZThxQYaw4N+pomSaF9Hx2Q==","tarball":"https://registry.npmjs.org/tos-crc64-js/-/tos-crc64-js-0.0.1-alpha.5.tgz","fileCount":13,"unpackedSize":2295637,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDEcppY+9coqYi4j++FrjtygEkFKoKEmyVSyDg9MpT0pAiA1HaHtp/LeyMFmTFLhAWGoExJv6AMn0ZRlEGgqdvorog=="}]},"_npmUser":{"name":"moonball","email":"gangc.cxy@foxmail.com"},"directories":{},"maintainers":[{"name":"moonball","email":"gangc.cxy@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tos-crc64-js_0.0.1-alpha.5_1709730059668_0.8979717590423235"},"_hasShrinkwrap":false},"0.0.1":{"name":"tos-crc64-js","version":"0.0.1","description":"Pure JavaScript implement of CRC64-ECMA182 for Node.js.","main":"crc64_ecma182.js","scripts":{"eslint":"eslint .","postinstall":"node scripts/postinstall.js","build":"mkdir -p dist && make js && node ./scripts/transform.js","prepublishOnly":"npm run build","test":"make test"},"repository":{"type":"git","url":"git+https://github.com/MoonBall/crc64-ecma182.js.git"},"keywords":["crc64","crc64-ecma182"],"author":{"name":"MoonBall","email":"gangc.cxy@foxmail.moe"},"license":"MIT","bugs":{"url":"https://github.com/MoonBall/crc64-ecma182.js/issues"},"homepage":"https://github.com/MoonBall/crc64-ecma182.js#readme","devDependencies":{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/plugin-transform-logical-assignment-operators":"^7.23.4","@babel/plugin-transform-optional-chaining":"^7.23.4","@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":"tos-crc64-js@0.0.1","gitHead":"8f4d111015adaf7bc54d6f79b6616e7d57b3a0ac","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-l2Ndi9BaDH3gmAJ5VIS/1WeqFcucK41WCbw5dije24k2XtUCclYfvhntWIVHe+0S85QcED4vjqm3AO1izlQ30g==","shasum":"51a5f17ef128bf784ba3e43f361a84090ff1a21c","tarball":"https://registry.npmjs.org/tos-crc64-js/-/tos-crc64-js-0.0.1.tgz","fileCount":10,"unpackedSize":2295629,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDkDfARd4Zq+tO0NfIob1YjaeUyLZlK/NJnl5YfUmAu7AiBSRuOdznlF3OTHADc/+uDwFds3jiTRWTrCO1TTaZthnw=="}]},"_npmUser":{"name":"moonball","email":"gangc.cxy@foxmail.com"},"directories":{},"maintainers":[{"name":"moonball","email":"gangc.cxy@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tos-crc64-js_0.0.1_1710096126403_0.7863884547237103"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-29T03:42:00.780Z","0.0.1-alpha.1":"2024-02-29T03:42:01.033Z","modified":"2024-03-10T18:42:07.012Z","0.0.1-alpha.2":"2024-03-04T10:34:17.395Z","0.0.1-alpha.3":"2024-03-04T10:46:03.235Z","0.0.1-alpha.4":"2024-03-04T17:22:18.353Z","0.0.1-alpha.5":"2024-03-06T13:00:59.905Z","0.0.1":"2024-03-10T18:42:06.618Z"},"maintainers":[{"name":"moonball","email":"gangc.cxy@foxmail.com"}],"description":"Pure JavaScript implement of CRC64-ECMA182 for Node.js.","homepage":"https://github.com/MoonBall/crc64-ecma182.js#readme","keywords":["crc64","crc64-ecma182"],"repository":{"type":"git","url":"git+https://github.com/MoonBall/crc64-ecma182.js.git"},"author":{"name":"MoonBall","email":"gangc.cxy@foxmail.moe"},"bugs":{"url":"https://github.com/MoonBall/crc64-ecma182.js/issues"},"license":"MIT","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","readmeFilename":"README.md"}