# int64-convert

> convert int64 number between two scales

Latest version **0.1.2** (published 2017-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install int64-convert
pnpm add int64-convert
yarn add int64-convert
bun add int64-convert
```

## 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.2 |
| Published | 2017-10-10 |
| First published | 2017-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | liaozhongwu |
| Maintainers | pisce |
| Keywords | int64, convert |

## Links

- npm: https://www.npmjs.com/package/int64-convert
- Repository: https://github.com/liaozhongwu/int64-convert
- Homepage: https://github.com/liaozhongwu/int64-convert#readme
- Issues: https://github.com/liaozhongwu/int64-convert/issues
- npm.io page: https://npm.io/package/int64-convert

## Recent versions

- 0.1.2 (latest) — 2017-10-10
- 0.1.1 — 2017-10-10
- 0.1.0 — 2017-05-24
- 0.0.5 — 2017-05-24
- 0.0.4 — 2017-05-10
- 0.0.3 — 2017-05-07
- 0.0.2 — 2017-05-07
- 0.0.1 — 2017-05-07

## README

# int64-convert

## Description

convert int64 number (display as string) between two scales

## Installation

``` 
npm install int64-convert
```

## Examples

```js 
var convert = require("int64-convert");

// unsigned
convert('7fffffffffffffff', 16, 10); // '9223372036854775807'
convert('9223372036854775807', 10, 16); // '7fffffffffffffff'
convert('7fffffffffffffff', 16, 2); // '111111111111111111111111111111111111111111111111111111111111111'
convert('9223372036854775807', 10, 2); // '111111111111111111111111111111111111111111111111111111111111111'

// polish int64 value
convert('4660', 10, 16, 8); // '00001234'
convert('4660', 10, 16, 16); // '0000000000001234'

// signed
convert.signedHexToDec('ffffffffffffffff'); // '-1'
convert.signedDecToHex('-1'); // 'ffffffffffffffff'

```

## Tests

```
npm install
npm test
```

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