# @types/node-int64

> TypeScript definitions for node-int64

Latest version **0.4.32** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/node-int64
pnpm add @types/node-int64
yarn add @types/node-int64
bun add @types/node-int64
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.4.32 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/node-int64
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-int64
- npm.io page: https://npm.io/package/@types/node-int64

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 0.4.32 (latest) — 2023-11-07
- 0.4.29 (ts2.0) — 2017-09-26
- 0.4.31 — 2023-10-18
- 0.4.30 — 2023-09-23
- 0.4.28 — 2016-09-19
- 0.0.27 — 2016-07-14
- 0.0.26-alpha — 2016-07-08
- 0.0.25-alpha — 2016-07-04
- 0.0.24-alpha — 2016-07-02
- 0.0.23-alpha — 2016-07-01
- 0.0.22-alpha — 2016-07-01
- 0.0.21-alpha — 2016-05-25
- 0.0.20-alpha — 2016-05-20
- 0.0.15-alpha — 2016-05-19
- 0.0.14-alpha — 2016-05-17

## README

# Installation
> `npm install --save @types/node-int64`

# Summary
This package contains type definitions for node-int64 (https://github.com/broofa/node-int64).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-int64.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-int64/index.d.ts)
````ts
/// <reference types="node" />

declare class Int64 {
    static MAX_INT: number;
    static MIN_INT: number;

    public buffer: Buffer;
    public offset: number;

    constructor(buffer: Buffer, offset?: number);
    constructor(array: Uint8Array, offset?: number);
    constructor(str: string);
    constructor(num: number);
    constructor(hi: number, lo: number);

    _2scomp(): void;

    // setValue(string) - A hexidecimal string
    setValue(str: string): void;
    // setValue(number) - Number (throws if n is outside int64 range)
    setValue(num: number): void;
    // setValue(hi, lo) - Raw bits as two 32-bit values
    setValue(hi: number, lo: number): void;

    toNumber(allowImprecise?: boolean): number;
    valueOf(): number;
    toString(radix?: number): string;
    toOctetString(separator?: string): string;
    toBuffer(rawBuffer?: boolean): Buffer;
    copy(targetBuffer: Buffer, targetOffset?: number): void;
    compare(other: Int64): number;
    equals(other: Int64): boolean;
    inspect(): string;
}

export = Int64;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Benno Dreissig](https://github.com/x3cion), and [Kevin Greene](https://github.com/kevin-greene-ck).

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