Skip to content

holepunchto/crc-universal

Repository files navigation

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

Apache 2.0