node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

fast-crc32

fast-crc32 Build status npm version Dependency Status

Installation

npm install fast-crc32 --save

Usage

const crc32 = require('fast-crc32'),
      http  = require('http');
 
http.get('http://example.com',
    response => crc32.calculateFromStream(response)
        .then(checksum => console.log('CRC32C: ' + checksum.toString(16)))
        .catch(error => console.error('Unable to calculate CRC32C', error)));