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

node-abi

Package Overview
Dependencies
Maintainers
4
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-abi

Get the Node ABI for a given target and runtime, and vice versa.

  • 2.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.7M
decreased by-22.84%
Maintainers
4
Weekly downloads
 
Created

What is node-abi?

The node-abi package is designed to help developers determine the correct Node.js ABI (Application Binary Interface) version for a given version of Node.js or Electron. This is particularly useful for developers working with native modules, as it allows them to target and compile their modules against the correct ABI version, ensuring compatibility across different Node.js and Electron versions.

What are node-abi's main functionalities?

Determining Node.js ABI for a specific version

This feature allows developers to get the ABI version for a specific version of Node.js. It's useful for ensuring that native modules are compiled against the correct ABI version.

"const nodeAbi = require('node-abi');
const abi = nodeAbi.getAbi('14.0.0', 'node');
console.log(abi); // Outputs the ABI version for Node.js 14.0.0"

Determining Electron ABI for a specific version

Similar to the Node.js ABI determination, this feature allows for the retrieval of the ABI version for a specific version of Electron. It's essential for developers working with Electron applications that include native modules.

"const nodeAbi = require('node-abi');
const electronAbi = nodeAbi.getAbi('11.0.0', 'electron');
console.log(electronAbi); // Outputs the ABI version for Electron 11.0.0"

Getting all supported targets

This feature provides a list of all supported targets (Node.js and Electron versions) and their corresponding ABI versions. It's useful for developers to understand the range of versions their native module can support.

"const nodeAbi = require('node-abi');
const targets = nodeAbi.supportedTargets;
console.log(targets); // Outputs an array of supported targets including their versions and ABI"

Other packages similar to node-abi

Keywords

FAQs

Package last updated on 14 Jul 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