cksum

calculate checksum for file (after cksum.c)

  • cksum

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
cksum
001.3.07 years ago8 years agoMinified + gzip package size for cksum in KB

Readme

cksum
NPM Build Status js-standard-style
JavaScript implementation of cksum

usage

var cksum = require('cksum')

cksum(new Buffer('testwhatever')) // returns buffer (big endian) with 32bit checksum
cksum('test') // converts 'test' to buffer and then calcuates the checksum


readStream.pipe(cksum.stream(function (sum, length) {
  console.log(sum.readUInt32BE(0), len)
}))