crc_32_ts

Calculating crc-32 checksum.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
crc_32_ts
1.0.137 years ago8 years agoMinified + gzip package size for crc_32_ts in KB

Readme

CRC32 module ================ Usage JS: ``` let crc32 = require('crc32ts').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: ``` /// import {CRC32 as crc32} from 'crc32ts'; 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 ```