# @types/sse4_crc32

> TypeScript definitions for sse4_crc32

Latest version **7.0.4** (published 2026-01-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/sse4_crc32
pnpm add @types/sse4_crc32
yarn add @types/sse4_crc32
bun add @types/sse4_crc32
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 7.0.4 |
| Published | 2026-01-09 |
| First published | 2022-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51436 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/sse4_crc32
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sse4_crc32
- npm.io page: https://npm.io/package/@types/sse4_crc32

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 7.0.4 (latest) — 2026-01-09
- 7.0.3 (ts4.6) — 2023-11-07
- 7.0.0 (ts4.1) — 2022-08-31
- 7.0.2 — 2023-10-18
- 7.0.1 — 2023-09-25

## README

# Installation
> `npm install --save @types/sse4_crc32`

# Summary
This package contains type definitions for sse4_crc32 (https://github.com/anandsuresh/sse4_crc32#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sse4_crc32.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sse4_crc32/index.d.ts)
````ts
/// <reference types="node" />

import { ReadStream } from "fs";
import { Writable } from "stream";

export class Crc32CStream extends Writable {
    constructor(crc?: number);
}

/**
 * @param stream Readable stream object
 * @param [crc] Non-zero integer value
 */
export function fromStream(stream: ReadStream, crc?: number): Crc32CStream;
/**
 * @param buf Buffer object or string
 * @param [initial] Non-zero integer value
 */
export function calculate(buf: Buffer | string, initial?: number): number;

// only available when NODE_ENV='production'
export const hardware_support: boolean | undefined;
/**
 * Calculates CRC-32C for the specified string/buffer using SSE 4.2 extensions
 * @param buf Buffer object or string
 * @param [initial] Non-zero integer value
 */
export const sse42_crc: ((buf: Buffer | string, initial?: number) => number) | undefined;
/**
 * Calculates CRC-32C for the specified string/buffer using table-lookups
 * @param buf Buffer object or string
 * @param [initial] Non-zero integer value
 */
export const table_crc: ((buf: Buffer | string, initial?: number) => number) | undefined;

````

### Additional Details
 * Last updated: Fri, 09 Jan 2026 20:02:09 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by .

---
_Source: https://npm.io/package/@types/sse4_crc32 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
