$ npm install crc-universal
Universal wrapper for https://github.com/holepunchto/libcrc with a JavaScript fallback.
npm install crc-universal
const { crc32 } = require('crc-universal')
const crc = crc32(Buffer.from('hello world'))
// 0xd4a1185
const crc = crc32(buffer)
Compute the CRC32 of the given buffer.
ISC
© 2010 - cnpmjs.org x YWFE | Home | YWFE