JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 172611
  • Score
    100M100P100Q174674F
  • License MIT

Helper library for node-rs

Package Exports

  • @node-rs/helper

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@node-rs/helper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@node-rs/helper

Helper library for node-rs

Usage

locateBinding

Load native binding file from dirname

locateBinding(dirname: string): string
  • dirname, dirname which the .node binding file located
  • return the full path of the binding file, throw if file not existed or platform not supported
const { locateBinding } = require('@node-rs/helper')

module.exports = require(locateBinding(__dirname))