Π·Π΅Ρ€ΠΊΠ°Π»ΠΎ ΠΈΠ·
1
0
Π€ΠΎΡ€ΠΊΠ½ΡƒΡ‚ΡŒ 0
🐒 πŸš€ Get the Node.js and Electron ABI for a given target and runtime
ΠŸΠ΅Ρ€Π΅ΠΉΡ‚ΠΈ ΠΊ Ρ„Π°ΠΉΠ»Ρƒ
GitHub Actions d5b7ee7147 feat: update ABI registry 2023-08-14 22:45:31 +00:00
.circleci build: use CircleCI cimg/node images (#135) 2023-02-07 14:16:14 -08:00
.github ci: add workflow to check ABI for Electron version (#144) 2023-08-08 11:41:04 -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-08-14 22:45:31 +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(deps): update transitive dep semver from 5.7.1 to 5.7.2 (#145) 2023-08-07 11:26:06 +02: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