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 -137262718Usage 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