Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 31 lines (20 sloc) 0.797 kb
64ef353 Alex Gorbatchev Removed Require.JS stub in favor of basic window.crc export.
authored
1 # JavaScript CRC 8, 16 and 32.
b6afb86 First checkin.
Alex Gorbatchev authored
2
64ef353 Alex Gorbatchev Removed Require.JS stub in favor of basic window.crc export.
authored
3 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".
45acafa Added unit tests.
Alex Gorbatchev authored
4
64ef353 Alex Gorbatchev Removed Require.JS stub in favor of basic window.crc export.
authored
5 Original code is taken from http://www.digsys.se/JavaScript/CRC.aspx
c771caa Updated README.
Alex Gorbatchev authored
6
7 ## Functions
8
64ef353 Alex Gorbatchev Removed Require.JS stub in favor of basic window.crc export.
authored
9 The following functions are implemented:
b6afb86 First checkin.
Alex Gorbatchev authored
10
11 crc8(String) #=> Number
12 crcArc(String) #=> Number
13 crc16(String) #=> Number
14 fcs16(String) #=> Number
15 crc32(String) #=> Number
16 hex8(Number) #=> String
17 hex16(Number) #=> String
18 hex32(Number) #=> String
c771caa Updated README.
Alex Gorbatchev authored
19
20 ## Installation
21
64ef353 Alex Gorbatchev Removed Require.JS stub in favor of basic window.crc export.
authored
22 git clone git://github.com/alexgorbatchev/node-crc.git
23
24 or
25
c771caa Updated README.
Alex Gorbatchev authored
26 npm install crc
64ef353 Alex Gorbatchev Removed Require.JS stub in favor of basic window.crc export.
authored
27
d5cb6f2 TJ Holowaychuk docs for tests
tj authored
28 ## Running tests
29
30 $ npm install
31 $ make test
Something went wrong with that request. Please try again.