# crc-universal

> Universal wrapper for libcrc with a JavaScript fallback

Latest version **1.0.4** (published 2023-03-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install crc-universal
pnpm add crc-universal
yarn add crc-universal
bun add crc-universal
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-03-24 |
| First published | 2022-08-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Kasper Isager Dalsgarð |
| Maintainers | mafintosh, kasperisager |

## Links

- npm: https://www.npmjs.com/package/crc-universal
- Repository: https://github.com/holepunchto/crc-universal
- Homepage: https://github.com/holepunchto/crc-universal#readme
- Issues: https://github.com/holepunchto/crc-universal/issues
- npm.io page: https://npm.io/package/crc-universal

## Dependencies (1)

- [crc-native](https://npm.io/package/crc-native.md) ^1.0.3

## Recent versions

- 1.0.4 (latest) — 2023-03-24
- 1.0.3 — 2023-03-24
- 1.0.2 — 2022-09-06
- 1.0.1 — 2022-08-26
- 1.0.0 — 2022-08-09

## README

# crc-universal

Universal wrapper for https://github.com/holepunchto/libcrc with a JavaScript fallback.

```sh
npm install crc-universal
```

## Usage

```js
const { crc32 } = require('crc-universal')

const crc = crc32(Buffer.from('hello world'))
// 0xd4a1185
```

## API

#### `const crc = crc32(buffer)`

Compute the CRC32 of the given buffer.

## License

ISC

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