Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Verious CRC for node.js and browser

tree: 830159d36e

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore Added mocha tests April 27, 2012
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
README.md

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 http://www.digsys.se/JavaScript/CRC.aspx

Functions

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

Installation

git clone git://github.com/alexgorbatchev/node-crc.git

or

npm install crc
Something went wrong with that request. Please try again.