crc_32_ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.13 • Public • Published

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

/crc_32_ts/

    Package Sidebar

    Install

    npm i crc_32_ts

    Weekly Downloads

    73

    Version

    1.0.13

    License

    ISC

    Last publish

    Collaborators

    • cejixo3dr