# to-unsigned-int64

> convert 64 bit integer to buffer

Latest version **1.0.0** (published 2015-07-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install to-unsigned-int64
pnpm add to-unsigned-int64
yarn add to-unsigned-int64
bun add to-unsigned-int64
```

## 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.0 |
| Published | 2015-07-16 |
| First published | 2015-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ichetandhembre |
| Maintainers | ichetandhembre |
| Keywords | buffer, usigned, int64, integer |

## Links

- npm: https://www.npmjs.com/package/to-unsigned-int64
- Repository: git@github.com:chetandhembre/to-unsigned-int64
- Homepage: https://github.com/chetandhembre/to-unsigned-int64
- Issues: https://github.com/chetandhembre/to-unsigned-int64/issues
- npm.io page: https://npm.io/package/to-unsigned-int64

## Dependencies (2)

- [bn.js](https://npm.io/package/bn.js.md) ^3.1.1
- [to-unsigned-int32](https://npm.io/package/to-unsigned-int32.md) ^2.0.1

## 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.0 (latest) — 2015-07-16

## README

[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

convert number to 64 bit buffer (size 8).

Currently only support [big endian](https://en.wikipedia.org/wiki/Endianness#Big-endian).

also checkout [to-unsigned-int32](https://github.com/chetandhembre/to-unsigned-int32).


## Install

```
npm i to-unsigned-int64
```
## Usage

```js
var toUInt64 = require('to-unsigned-int64')

console.log(toUInt64(0x1ffffffff)) //<Buffer 00 00 00 01 ff ff ff ff>

```

`n` can be number in any base.

returns buffer with length 8.

## licence

MIT

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