# int53

> silly 53bit integer buffer serialization

Latest version **1.0.0** (published 2019-02-07) · BSD-3-Clause license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-02-07 |
| First published | 2012-10-09 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | separate (@types/int53) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 22 |
| Author | Danny Coates |
| Maintainers | dannycoates |
| Keywords | int, int64, double, number |

## Links

- npm: https://www.npmjs.com/package/int53
- Repository: https://github.com/dannycoates/int53
- Homepage: https://github.com/dannycoates/int53#readme
- Issues: https://github.com/dannycoates/int53/issues
- npm.io page: https://npm.io/package/int53

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-02-07
- 0.2.4 — 2016-02-24
- 0.2.3 — 2012-10-12
- 0.2.2 — 2012-10-11
- 0.2.1 — 2012-10-11
- 0.2.0 — 2012-10-11
- 0.1.0 — 2012-10-09
- 0.0.2 — 2012-10-09
- 0.0.1 — 2012-10-09

## README

# int53

serialization of 53-bit integers to and from 8 byte buffers.

# usage

```js
var int53 = require('int53')

var a = Buffer(8)

int53.writeUInt64BE(0xFFFFFFFFFFF, a)

var b = Buffer('0000FFFFFFFFFFFF', 'hex')

var x = int53.readUInt64BE(b)
```

# API

```js
var number = int53.readInt64BE(buffer, offset)
var number = int53.readInt64LE(buffer, offset)
var number = int53.readUInt64BE(buffer, offset)
var number = int53.readUInt64LE(buffer, offset)

int53.writeInt64BE(number, buffer, offset)
int53.writeInt64LE(number, buffer, offset)
int53.writeUInt64BE(number, buffer, offset)
int53.writeUInt64LE(number, buffer, offset)
```

## why?

Sometimes you need to read and write 64-bit integers. For some
things like timestamps, file sizes, and counters the 53-bits
offered by a double is enough to get by, and easier to work with
than a bigint module.

## License

BSD

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