95 lines
6.2 KiB
JSON
95 lines
6.2 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "crc@3.3.0",
|
|
"scope": null,
|
|
"escapedName": "crc",
|
|
"name": "crc",
|
|
"rawSpec": "3.3.0",
|
|
"spec": "3.3.0",
|
|
"type": "version"
|
|
},
|
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/express-session"
|
|
]
|
|
],
|
|
"_from": "crc@3.3.0",
|
|
"_id": "crc@3.3.0",
|
|
"_inCache": true,
|
|
"_location": "/crc",
|
|
"_nodeVersion": "0.12.2",
|
|
"_npmUser": {
|
|
"name": "alexgorbatchev",
|
|
"email": "alex.gorbatchev@gmail.com"
|
|
},
|
|
"_npmVersion": "2.7.4",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "crc@3.3.0",
|
|
"scope": null,
|
|
"escapedName": "crc",
|
|
"name": "crc",
|
|
"rawSpec": "3.3.0",
|
|
"spec": "3.3.0",
|
|
"type": "version"
|
|
},
|
|
"_requiredBy": [
|
|
"/express-session"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/crc/-/crc-3.3.0.tgz",
|
|
"_shasum": "fa622e1bc388bf257309082d6b65200ce67090ba",
|
|
"_shrinkwrap": null,
|
|
"_spec": "crc@3.3.0",
|
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/express-session",
|
|
"author": {
|
|
"name": "Alex Gorbatchev",
|
|
"url": "https://github.com/alexgorbatchev"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/alexgorbatchev/node-crc/issues"
|
|
},
|
|
"dependencies": {},
|
|
"description": "Various CRC JavaScript implementations",
|
|
"devDependencies": {
|
|
"beautify-benchmark": "^0.2.4",
|
|
"benchmark": "^1.0.0",
|
|
"buffer-crc32": "^0.2.3",
|
|
"chai": "~1.9.1",
|
|
"coffee-errors": "~0.8.6",
|
|
"coffee-script": "~1.7.1",
|
|
"mocha": "*",
|
|
"seedrandom": "^2.3.6"
|
|
},
|
|
"directories": {},
|
|
"dist": {
|
|
"shasum": "fa622e1bc388bf257309082d6b65200ce67090ba",
|
|
"tarball": "https://registry.npmjs.org/crc/-/crc-3.3.0.tgz"
|
|
},
|
|
"gitHead": "5ec5f3c74cd5a0315ac428af695743ff447a6723",
|
|
"homepage": "https://github.com/alexgorbatchev/node-crc",
|
|
"keywords": [
|
|
"crc"
|
|
],
|
|
"license": "MIT",
|
|
"main": "./lib/index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "alexgorbatchev",
|
|
"email": "alex.gorbatchev@gmail.com"
|
|
}
|
|
],
|
|
"name": "crc",
|
|
"optionalDependencies": {},
|
|
"readme": "# crc\n\n[![GitTip](http://img.shields.io/gittip/alexgorbatchev.svg?style=flat)](https://www.gittip.com/alexgorbatchev/)\n[![Dependency status](http://img.shields.io/david/alexgorbatchev/node-crc.svg?style=flat)](https://david-dm.org/alexgorbatchev/node-crc)\n[![devDependency Status](http://img.shields.io/david/dev/alexgorbatchev/node-crc.svg?style=flat)](https://david-dm.org/alexgorbatchev/node-crc#info=devDependencies)\n[![Build Status](http://img.shields.io/travis/alexgorbatchev/node-crc.svg?style=flat&branch=master)](https://travis-ci.org/alexgorbatchev/node-crc)\n\n[![NPM](https://nodei.co/npm/crc.svg?style=flat)](https://npmjs.org/package/node-crc)\n\nModule for calculating Cyclic Redundancy Check (CRC).\n\n## Features\n\n* Full test suite comparing values against reference `pycrc` implementation.\n* Version 3.x is 3x to 4x faster than version 2.x.\n* Pure JavaScript implementation, no dependencies.\n* Provides CRC Tables for optimized calculations.\n* Provides support for the following CRC algorithms:\n * CRC1 `crc.crc1(…)`\n * CRC8 `crc.crc8(…)`\n * CRC8 1-Wire `crc.crc81wire(…)`\n * CRC16 `crc.crc16(…)`\n * CRC16 CCITT `crc.crc16ccitt(…)`\n * CRC16 Modbus `crc.crc16modbus(…)`\n * CRC16 XModem `crc.crc16xmodem(…)`\n * CRC24 `crc.crc24(…)`\n * CRC32 `crc.crc32(…)`\n\n## IMPORTANT\n\nIf you've used `crc` module prior to version 2.x, you might have some inconsistencies with the current implementation because it relied on very old code and wasn't checked against reference implementation. If you upgrading from 1.x, please take special care.\n\n## Support\n\n<a href=\"https://blockchain.info/address/1CZyBREeHTmy8C5zVGHZHPwqBuWFmEuUCQ\"><img src=\"bitcoin.png\" width=\"150\" align=\"right\"/></a> Please support me on [GitTip](https://www.gittip.com/alexgorbatchev/). I've spend days developing and grooming this module and hope to spend more time. If you have bitcoin, please use the QR code or this wallet address [`1CZyBREeHTmy8C5zVGHZHPwqBuWFmEuUCQ`](https://blockchain.info/address/1CZyBREeHTmy8C5zVGHZHPwqBuWFmEuUCQ):\n\n## Installation\n\n npm install crc\n\n## Running tests\n\n $ npm install\n $ npm test\n\n## Usage Example\n\nCalculate a CRC32:\n\n var crc = require('crc');\n\n crc.crc32('hello').toString(16);\n # => \"3610a686\"\n\nCalculate a CRC32 of a file:\n\n crc.crc32(fs.readFileSync('README.md', 'utf8')).toString(16);\n # => \"127ad531\"\n\nOr using a `Buffer`:\n\n crc.crc32(fs.readFileSync('README.md')).toString(16);\n # => \"127ad531\"\n\nIncrementally calculate a CRC32:\n\n value = crc32('one');\n value = crc32('two', value);\n value = crc32('three', value);\n value.toString(16);\n # => \"09e1c092\"\n\n## Thanks!\n\n[pycrc](http://www.tty1.net/pycrc/) library is which the source of all of the CRC tables.\n\n# License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Alex Gorbatchev\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\nall copies 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\nTHE SOFTWARE.\n",
|
|
"readmeFilename": "README.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/alexgorbatchev/node-crc.git"
|
|
},
|
|
"scripts": {
|
|
"pretest": "coffee --bare --output ./lib --compile ./src/*.coffee",
|
|
"test": "mocha test/*.spec.coffee"
|
|
},
|
|
"version": "3.3.0"
|
|
}
|