$ npm install crc-native
https://github.com/holepunchto/libcrc JavaScript bindings for Node.js.
npm install crc-native
const { crc32 } = require('crc-native')
const crc = crc32(Buffer.from('hello world'))
// 0xd4a1185
const crc = crc32(buffer)
Compute the CRC32 of the given buffer.
Apache-2.0
© 2010 - cnpmjs.org x YWFE | Home | YWFE