Socket
Book a DemoInstallSign in
Socket

bundled-bindings

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bundled-bindings

Helper module for loading your native module's .node file

latest
Source
npmnpm
Version
1.5.0
Version published
Maintainers
0
Created
Source

bundled-bindings

Fork of node-bindings, re-purposed for use in a bundled environment.

The original node-bindings attempts to load native addons by walking a series of known paths relative to the executing file's node_modules folder. This doesn't work well for a bundled use case where there is no node_modules folder and the native addons need to be placed alongside the bundled file.

The approach used by this fork is to look for the native addons where the build process places them. The goal is to support loading modules both in an bundled case and in a non-bundled case.

The bundled case is determined by looking for a neighboring compiled directory. The non-bundled case is determined by looking for a dist/compiled when walking up the filesystem from the current file.

Keywords

native

FAQs

Package last updated on 06 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts