Π·Π΅Ρ€ΠΊΠ°Π»ΠΎ ΠΈΠ·
1
0
Π€ΠΎΡ€ΠΊΠ½ΡƒΡ‚ΡŒ 0
🐒 πŸš€ Get the Node.js and Electron ABI for a given target and runtime
ΠŸΠ΅Ρ€Π΅ΠΉΡ‚ΠΈ ΠΊ Ρ„Π°ΠΉΠ»Ρƒ
up-up-and-away[bot] e6468c9b5a
build: ran uuaw to fix yarn audit output (#153)
Co-authored-by: up-up-and-away[bot] <152255816+up-up-and-away[bot]@users.noreply.github.com>
2023-11-28 10:49:01 +01:00
.circleci chore: bump continuousauth/npm in .circleci/config.yml to 2.1.0 (#151) 2023-11-22 11:03:18 +01:00
.github ci: restrict auto-update to more active time window (#149) 2023-10-10 16:29:30 -07:00
scripts build: secondary sort abi_registry.json entries by version (#139) 2023-06-09 14:24:44 -07:00
test test: add node 16 tests, update electron versions (#109) 2021-10-21 12:55:29 -07:00
.gitignore feat!: migrate Travis to CircleCI, upgrade semver to ^7.3.5 (#107) 2021-09-01 16:43:56 -07:00
.releaserc.json chore: change master branch to main (#110) 2021-10-21 12:55:41 -07:00
CODE_OF_CONDUCT.md docs: Add code of conduct 2017-09-06 11:33:51 +02:00
CONTRIBUTING.md build: use cfa orb (#128) 2023-01-09 12:50:18 -08:00
LICENSE Initial commit 2016-12-03 00:51:21 +01:00
README.md docs: update badges (#117) 2023-01-12 19:01:01 -08:00
abi_registry.json feat: update ABI registry 2023-10-17 00:15:08 +00:00
index.js fix: do not assume targets are sorted, fixes #113 2021-10-21 12:50:38 -07:00
package.json build: only publish necessary files (#138) 2023-06-09 14:01:39 -07:00
yarn.lock build: ran uuaw to fix yarn audit output (#153) 2023-11-28 10:49:01 +01:00

README.md

Node.js ABI

Build Status Auto-update ABI JSON file Snyk badge npm version

Get the Node ABI (application binary interface) for a given target and runtime, and vice versa.

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.getTarget('51', 'node')
// '7.2.0'
nodeAbi.getTarget('50', 'electron')
// '1.4.15'

nodeAbi.allTargets
// [
//  { runtime: 'node', target: '0.10.48', abi: '11', lts: false },
//  { runtime: 'node', target: '0.12.17', abi: '14', lts: false },
//  { runtime: 'node', target: '4.6.1', abi: '46', lts: true },
//  { runtime: 'node', target: '5.12.0', abi: '47', lts: false },
//  { runtime: 'node', target: '6.9.4', abi: '48', lts: true },
//  { runtime: 'node', target: '7.4.0', abi: '51', lts: false },
//  { runtime: 'electron', target: '1.0.2', abi: '47', lts: false },
//  { runtime: 'electron', target: '1.2.8', abi: '48', lts: false },
//  { runtime: 'electron', target: '1.3.13', abi: '49', lts: false },
//  { runtime: 'electron', target: '1.4.15', abi: '50', lts: false }
// ]
nodeAbi.deprecatedTargets
nodeAbi.supportedTargets
nodeAbi.additionalTargets
nodeAbi.futureTargets
// ...

References