crc_32_ts
v1.0.13
Published
Calculating crc-32 checksum.
Downloads
436
Readme
CRC32 module
Usage JS:
let crc32 = require('crc_32_ts').CRC32;
console.log(crc32); // prints { [Function: CRC32] buf: [Function], str: [Function] }
console.log(crc32.str('Hello')); // prints -137262718
console.log(crc32.buf(new Buffer('Hello'))); // prints -137262718
Usage TS:
///<reference path="node_modules/crc_32_ts/dist/index.d.ts"/>
import {CRC32 as crc32} from 'crc_32_ts';
console.log(crc32); // prints { [Function: CRC32] buf: [Function], str: [Function] }
console.log(crc32.str('Hello')); // prints -137262718
console.log(crc32.buf(new Buffer('Hello'))); // prints -137262718