Comparing version 3.4.4 to 3.5.0
@@ -13,3 +13,4 @@ 'use strict'; | ||
crc24: require('./crc24'), | ||
crc32: require('./crc32') | ||
crc32: require('./crc32'), | ||
crcjam: require('./crcjam') | ||
}; |
{ | ||
"name": "crc", | ||
"version": "3.4.4", | ||
"version": "3.5.0", | ||
"description": "Module for calculating Cyclic Redundancy Check (CRC) for Node.js and the Browser.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -32,2 +32,3 @@ # crc | ||
* CRC32 `crc.crc32(…)` | ||
* CRCJAM `crc.crcjam(…)` | ||
@@ -45,3 +46,3 @@ ## Installation | ||
```js | ||
var crc = require('crc'); | ||
const crc = require('crc'); | ||
@@ -76,2 +77,11 @@ crc.crc32('hello').toString(16); | ||
For web distribution, it's best to require specific modules that you need to avoid bundling unnecessary code. | ||
```js | ||
const crc32 = require('crc/lib/crc32'); | ||
crc32('hello').toString(16); | ||
// "3610a686" | ||
``` | ||
## Running tests | ||
@@ -78,0 +88,0 @@ |
36631
17
307
117