Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 720 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 720 Bytes

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)));