# turbo-crc32

> CRC32 generation using Slicing-by-N algorithm

Latest version **1.0.1** (published 2018-12-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install turbo-crc32
pnpm add turbo-crc32
yarn add turbo-crc32
bun add turbo-crc32
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-12-15 |
| First published | 2018-10-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 0 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Dmitriy Tsvettsikh |
| Maintainers | reklatsmasters |
| Keywords | crc, slicing-by-n, fast, crc32, crc32c |

## Links

- npm: https://www.npmjs.com/package/turbo-crc32
- Repository: https://github.com/reklatsmasters/turbo-crc32
- Homepage: https://github.com/reklatsmasters/turbo-crc32#readme
- Issues: https://github.com/reklatsmasters/turbo-crc32/issues
- npm.io page: https://npm.io/package/turbo-crc32

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-12-15
- 1.0.0 — 2018-10-28

## README

# turbo-crc32

[![Build Status](https://travis-ci.com/reklatsmasters/turbo-crc32.svg?branch=master)](https://travis-ci.com/reklatsmasters/turbo-crc32)
[![npm](https://img.shields.io/npm/v/turbo-crc32.svg)](https://npmjs.org/package/turbo-crc32)
[![node](https://img.shields.io/node/v/turbo-crc32.svg)](https://npmjs.org/package/turbo-crc32)
[![license](https://img.shields.io/npm/l/turbo-crc32.svg)](https://npmjs.org/package/turbo-crc32)
[![downloads](https://img.shields.io/npm/dm/turbo-crc32.svg)](https://npmjs.org/package/turbo-crc32)
[![Coverage Status](https://coveralls.io/repos/github/reklatsmasters/turbo-crc32/badge.svg?branch=master)](https://coveralls.io/github/reklatsmasters/turbo-crc32?branch=master)

CRC32 generation using Slicing-by-N algorithm. CRC32 and CRC32C algorithms are supported.

### Support

[![Buy Me A Coffee](https://www.buymeacoffee.com/assets/img/custom_images/purple_img.png)](https://www.buymeacoffee.com/reklatsmasters)


## Usage

```js
const crc32 = require('turbo-crc32/crc32');
const crc32c = require('turbo-crc32/crc32c');

crc32('123456789')  // 0xcbf43926
crc32c('123456789') // 0xe3069283

// if you want signed integer
crc32('123456789') >> 0 // -873187034
```

## API

* **`crc32(input: Buffer|String): Number`**
* **`crc32c(input: Buffer|String): Number`**

## Benchmark

*nodejs 10.14.1 / Ubuntu 16.04 x64*

```
buffer-crc32:   1387.205ms
crc:            987.866ms
turbo-crc32:    447.711ms
```

## License

MIT, 2018 (c) Dmitriy Tsvettsikh

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