Comparing version 1.1.1 to 1.2.0
@@ -47,2 +47,6 @@ 'use strict' | ||
crc32.c = function crc32c( buffer, seed ) { | ||
return crc32( buffer, seed, crc32.TABLE.CASTAGNOLI ) | ||
} | ||
module.exports = crc32 | ||
@@ -49,0 +53,0 @@ |
{ | ||
"name": "cyclic-32", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Tiny, streaming, seedable CRC32 library, compatible with the crypto.Hash API", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -5,3 +5,2 @@ # cyclic-32 | ||
[](https://npmjs.com/package/cyclic-32) | ||
[](https://travis-ci.org/jhermsmeier/node-cyclic-32) | ||
@@ -37,2 +36,7 @@ A tiny, streaming, seedable [CRC32] library, compatible with Node's [crypto.Hash API]. | ||
```js | ||
// Shorthand for Castagnoli | ||
var castagnoli = crc32.c( buffer, seed = 0, table = crc32.TABLE.DEFAULT ) | ||
``` | ||
```js | ||
var checksumStream = crc32.createHash({ | ||
@@ -39,0 +43,0 @@ seed: 0, |
15165
184
117