# avro-crc64

> Rabin 64 bit crc fingerprint for AVRO Single-object encoding

Latest version **0.1.0** (published 2018-02-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install avro-crc64
pnpm add avro-crc64
yarn add avro-crc64
bun add avro-crc64
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-02-11 |
| First published | 2018-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 3 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Michael Heinecke |
| Maintainers | spikepanx |

## Links

- npm: https://www.npmjs.com/package/avro-crc64
- Repository: https://github.com/spikepanx/avro-crc64
- Homepage: https://github.com/spikepanx/avro-crc64#readme
- Issues: https://github.com/spikepanx/avro-crc64/issues
- npm.io page: https://npm.io/package/avro-crc64

## Dependencies (3)

- [avsc](https://npm.io/package/avsc.md) ^5.2.0
- [long](https://npm.io/package/long.md) ^4.0.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.1

## Recent versions

- 0.1.0 (latest) — 2018-02-11
- 0.0.2 — 2018-02-09
- 0.0.1 — 2018-02-09

## README

# avro-crc64
[![Build Status](https://travis-ci.org/spikepanx/avro-crc64.svg?branch=master)](https://travis-ci.org/spikepanx/avro-crc64)
[![Coverage Status](https://coveralls.io/repos/github/spikepanx/avro-crc64/badge.svg?branch=master)](https://coveralls.io/github/spikepanx/avro-crc64?branch=master)

## Features
- Computes the 64-bit AVRO fingerprint for a given AVRO schema string

## Installation
```bash
npm install avro-crc64
```

## Documentation
- [API](docs/API.md)

## Examples

```js
const { fingerprint64AvroSchema } = require('avro-crc64');

const avroSchemaExample = {
  type: 'record',
  name: 'Example',
  doc: 'Simple example avro schema',
  fields: [
    {
      name: 'foobar',
      type: 'string',
      doc: 'foobar is all about barbazz',
    },
  ],
};

fingerprint64AvroSchema(JSON.stringify(avroSchemaExample))
  .then((uint8) => {
    const hexFingerprint = Buffer.from(uint8.buffer).toString('hex');

    return console.log(hexFingerprint); // logs "b75d6f7da238cf70"
  })
;```

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