npm.io
1.1.8 • Published 1 year ago

crc-native

Licence
Apache-2.0
Version
1.1.8
Deps
1
Size
1.2 MB
Vulns
0
Weekly
0
Stars
1

crc-native

https://github.com/holepunchto/libcrc JavaScript bindings for Node.js.

npm install crc-native

Usage

const { crc32 } = require('crc-native')

const crc = crc32(Buffer.from('hello world'))
// 0xd4a1185

API

const crc = crc32(buffer)

Compute the CRC32 of the given buffer.

License

Apache-2.0