crc-universal
v1.0.4
Published
Universal wrapper for libcrc with a JavaScript fallback
Downloads
4,825
Readme
crc-universal
Universal wrapper for https://github.com/holepunchto/libcrc with a JavaScript fallback.
npm install crc-universal
Usage
const { crc32 } = require('crc-universal')
const crc = crc32(Buffer.from('hello world'))
// 0xd4a1185
API
const crc = crc32(buffer)
Compute the CRC32 of the given buffer.
License
ISC