# avro-serializer

> Simple Apache avro binary serializer.

Latest version **0.0.4** (published 2016-02-02) · LGPLv3 license · 0 weekly downloads

## Install

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

## 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.0.4 |
| Published | 2016-02-02 |
| First published | 2015-02-12 |
| Weekly downloads | 0 |
| License | LGPLv3 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Andrey F. Kupreychik |
| Maintainers | foxel |
| Keywords | avro, serializer, buffer |

## Links

- npm: https://www.npmjs.com/package/avro-serializer
- Repository: https://github.com/foxel/node-avro-serializer
- Issues: https://github.com/foxel/node-avro-serializer/issues
- npm.io page: https://npm.io/package/avro-serializer

## Dependencies (1)

- [node-avro-io](https://npm.io/package/node-avro-io.md) ^0.3.3

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2016-02-02
- 0.0.3 — 2015-02-17
- 0.0.2 — 2015-02-12
- 0.0.1 — 2015-02-12

## README

Node Avro Serializer
=========

A small library providing serialization and deserialization routines for Apache avro binary encoding

## Installation

    npm install avro-serializer --save

## Usage

    var Serializer = require('avro-serializer');

    var s = new Serializer({
        "type": "record",
        "name": "testRecord",
        "namespace": "com.test",
        "fields": [
            {"name": "name",    "type": "string"},
            {"name": "surname", "type": "string"},
            {"name": "title",   "type": "string"},
            {"name": "age",     "type": "long"}
        ]
    });

    var record = {
        name: "John",
        surname: "Smith",
        title: "User",
        age: 28
    };

    var buffer = s.serialize(record);
    console.log(buffer.toString('hex'));

    var newRecord = s.deserialize(buffer);
    console.log(newRecord);

## Tests

    npm test

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