Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d5cb6f2314
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (20 sloc) 0.797 kb

JavaScript CRC 8, 16 and 32.

This is a basic port/copy of the JavaScript CRC implementation. The module works with any CommonJS system supporting module.exports notation as well as in the browser. When loaded in the browser, all functions end up under the window.crc "namespace".

Original code is taken from


The following functions are implemented:

crc8(String)    #=> Number
crcArc(String)  #=> Number
crc16(String)   #=> Number
fcs16(String)   #=> Number
crc32(String)   #=> Number
hex8(Number)    #=> String
hex16(Number)   #=> String
hex32(Number)   #=> String


git clone git://


npm install crc

Running tests

$ npm install
$ make test
Jump to Line
Something went wrong with that request. Please try again.