Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bindung

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bindung

Helps you require your native Node.js addon.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

bindung

Node.js package Build status

Helps you require your native Node.js addon.

bindung is a simpler and more modern alternative to bindings. It removes support for legacy paths, requires Node.js v4 or later, and basically uses a simple try…catch statement as explained in the Node.js documentation.

Installation

$ npm install bindung --save

Usage

Pass the target_name, as defined in your binding.gyp, to bindung.

const addon = require('bindung')('addon')

Differences to bindings

  • Only tries Release and Debug build paths (as opposed to bindings)
  • Looks for binding.gyp instead of package.json (therefore it works without package.json being present)
  • Always appends .node (as opposed to bindings), which means that you should not append .node yourself
  • Requires Node.js v4 or later

Changelog

This project follows Semantic Versioning 2.

  • v1.0.0 (2017-01-01): Initial release

License

bindung is licensed under the ISC license. See LICENSE for the full license.

Keywords

FAQs

Package last updated on 01 Jan 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc