JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 75
  • Score
    100M100P100Q71039F
  • License ISC

Calculating crc-32 checksum.

Package Exports

  • crc_32_ts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (crc_32_ts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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:

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