一个纯粹的 JavaScript CRC32 算法,可与二进制数据协调一致
crc32 that works with binary data and fancy character sets, outputs buffer, signed or unsigned data and has tests.
Derived from the sample CRC implementation in the PNG specification: http://www.w3.org/TR/PNG/#D-CRCAppendix
This package requires Node 8+ to work.
npm install buffer-crc32…This was tested against the output of zlib's crc32 method. You can run
the tests withnpm test (requires tap)
https://github.com/alexgorbatchev/node-crc, crc.buffer.crc32 also
supports buffer inputs and return unsigned ints (thanks @tjholowaychuk).
MIT/X11
暂无开放 Issues,或尚未同步最近议题。