Installation
npm install --save @types/polycrc
Summary
This package contains type definitions for polycrc (https://github.com/latysheff/node-polycrc#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/polycrc.
index.d.ts
/// <reference types="node" />
export class CRC {
constructor(width: number, poly: number, xor_in: number, xor_out: number, reflect: boolean);
calculate(buffer: Buffer): number;
calculate_no_table(buffer: Buffer): number;
gen_table(): Int32Array;
print_table(): string;
}
export function crc(
width: number,
poly: number,
xor_in: number,
xor_out: number,
reflect: boolean,
): (buffer: Buffer) => number;
export const crc1: CRC;
export const crc6: CRC;
export const crc8: CRC;
export const crc10: CRC;
export const crc16: CRC;
export const crc24: CRC;
export const crc32: CRC;
export const crc32c: CRC;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/node
Credits
These definitions were written by Emmanuel.