# @node-rs/helper

> Helper library for node-rs

Latest version **1.6.1** (published 2026-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @node-rs/helper
pnpm add @node-rs/helper
yarn add @node-rs/helper
bun add @node-rs/helper
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.6.1 |
| Published | 2026-08-13 |
| First published | 2020-04-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1472 |
| Author | LongYinan |
| Maintainers | broooooklyn |
| Keywords | N-API, Performance, Rust, napi |

## Links

- npm: https://www.npmjs.com/package/@node-rs/helper
- Repository: https://github.com/napi-rs/node-rs
- Issues: https://github.com/napi-rs/node-rs/issues
- npm.io page: https://npm.io/package/@node-rs/helper

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.6.1 (latest) — 2026-08-13
- 1.0.0-alpha.3 (alpha) — 2020-12-11
- 1.6.0 — 2024-04-21
- 1.5.0 — 2024-01-09
- 1.4.1 — 2024-01-03
- 1.4.0 — 2024-01-02
- 1.3.3 — 2022-01-18
- 1.3.2 — 2022-01-13
- 1.3.1 — 2022-01-13
- 1.3.0 — 2021-12-22
- 1.2.1 — 2021-07-22
- 1.2.0 — 2021-06-08
- 1.1.1 — 2021-06-01
- 1.1.0 — 2021-02-01
- 1.0.0 — 2020-12-29
- … 12 more at https://npm.io/package/@node-rs/helper/versions

## README

# `@node-rs/helper`

[![install size](https://packagephobia.com/badge?p=@node-rs/helper)](https://packagephobia.com/result?p=@node-rs/helper)
[![Downloads](https://img.shields.io/npm/dm/@node-rs/helper.svg?sanitize=true)](https://npmcharts.com/compare/@node-rs/helper?minimal=true)

> Helper library for load native package.

## Usage

### locateBinding

Load native binding file from `dirname`

```ts
loadBinding(dirname: string, filename?: string = 'index', packageName?: string): string
```

- `dirname`, dirname which the **.node** binding file located
- `filename`, the `napi.name` filed in you `package.json`
- `packageName`, the `name` filed in your `package.json`, `@swc/core` for example.

- return native module

```ts
const { loadBinding } = require('@node-rs/helper')

module.exports = loadBinding(__dirname, 'swc', '@swc/core')
```

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