@node-rs/helper
Helper library for node-rs
Last updated 5 years ago by broooooklyn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install @node-rs/helper 
SYNC missed versions from official npm registry.

@node-rs/helper

install size Downloads

Helper library for load native package.

Usage

locateBinding

Load native binding file from dirname

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

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

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

Current Tags

  • 1.0.0-alpha.3                                ...           alpha (4 years ago)
  • 1.3.3                                ...           latest (3 years ago)

22 Versions

  • 1.3.3                                ...           3 years ago
  • 1.3.2                                ...           3 years ago
  • 1.3.1                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 1.0.0-alpha.3                                ...           4 years ago
  • 1.0.0-alpha.2                                ...           4 years ago
  • 1.0.0-alpha.1                                ...           4 years ago
  • 1.0.0-alpha.0                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.1                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |