# memorymap

> A class wrapper for mapping class properties into a buffer.

Latest version **1.0.9** (published 2019-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install memorymap
pnpm add memorymap
yarn add memorymap
bun add memorymap
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2019-07-18 |
| First published | 2019-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Necati Kaan İnel |
| Maintainers | kaaninel |
| Keywords | memory, buffer, map, mmap, data, persistant, share, global |

## Links

- npm: https://www.npmjs.com/package/memorymap
- Repository: https://github.com/EmpatiLab/MemoryMap
- Homepage: https://github.com/EmpatiLab/MemoryMap#readme
- Issues: https://github.com/EmpatiLab/MemoryMap/issues
- npm.io page: https://npm.io/package/memorymap

## Dependencies (1)

- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.13

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K 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

## Recent versions

- 1.0.9 (latest) — 2019-07-18
- 1.0.8 — 2019-07-17
- 1.0.7 — 2019-07-17
- 1.0.6 — 2019-07-17
- 1.0.5 — 2019-07-16
- 1.0.4 — 2019-07-16
- 1.0.3 — 2019-07-16
- 1.0.2 — 2019-07-13
- 1.0.1 — 2019-07-13
- 1.0.0 — 2019-07-13

## README

# MemoryMap

A class wrapper for mapping class properties into a buffer.

```ts
class Map extends MemoryMap {
  @Field(Byte) // 1
  Id: number;

  @Field(UInt) // 4
  Id2: number;

  @Field(BString(15)) // 16
  Name: string;
}

const Buff = Buffer.alloc(Map.Size); // 21

const a = new Map(Buff);

console.log(Buff);
a.Id = 12;
console.log(Buff);
a.Name = "Test Acc";
console.log(Buff);
```

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