JSPM

  • Created
  • Published
  • Downloads 10802336
  • Score
    100M100P100Q255974F
  • License MIT

Get the Node ABI for a given target and runtime

Package Exports

  • node-abi

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-abi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Node.js ABI

Build Status

Get the Node ABI for a given target and runtime.

Installation

npm install node-abi

Usage

const nodeAbi = require('node-abi')

nodeAbi.getAbi('7.2.0', 'node')
// '51'
nodeAbi.getAbi('1.4.10', 'electron')
// '50'

nodeAbi.allTargets
// [
//   { runtime: 'node', target: '0.10.48' },
//   { runtime: 'node', target: '0.12.17' },
//   { runtime: 'node', target: '4.6.1' },
//   { runtime: 'node', target: '5.12.0' },
//   { runtime: 'node', target: '6.9.1' },
//   { runtime: 'node', target: '7.0.0' },
//   { runtime: 'electron', target: '1.0.2' },
//   { runtime: 'electron', target: '1.2.8' },
//   { runtime: 'electron', target: '1.3.12' },
//   { runtime: 'electron', target: '1.4.10' }
// ]

References