# @inithink/node-pointer

> Access memory by address (like c++ pointer)

Latest version **1.0.6** (published 2019-02-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install @inithink/node-pointer
pnpm add @inithink/node-pointer
yarn add @inithink/node-pointer
bun add @inithink/node-pointer
```

## 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.6 |
| Published | 2019-02-01 |
| First published | 2019-01-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 92.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Maintainers | inithink |

## Links

- npm: https://www.npmjs.com/package/@inithink/node-pointer
- npm.io page: https://npm.io/package/@inithink/node-pointer

## Recent versions

- 1.0.6 (latest) — 2019-02-01
- 1.0.5 — 2019-02-01
- 1.0.4 — 2019-02-01
- 1.0.3 — 2019-01-31
- 1.0.2 — 2019-01-31
- 1.0.1 — 2019-01-31
- 1.0.0 — 2019-01-31

## README

# node-pointer
Access C++ pointer from node.js code

##Example

### readAddress
```javascript
const assert = require('assert');
const {readAddress} = require('@inithink/node-pointer');
// By using ref-napi, we can get memory address of a Buffer instance
require('ref-napi');

const buf = Buffer.alloc(4);
buf.writeUInt64LE(0x11223344, 0);

let buffer = readAddress(buf.address(), 4);
assert.strictEqual(0x11223344, buffer.readUInt32LE(0));
```

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