Π·Π΅Ρ€ΠΊΠ°Π»ΠΎ ΠΈΠ·
1
0
Π€ΠΎΡ€ΠΊΠ½ΡƒΡ‚ΡŒ 0
🐒 πŸš€ Get the Node.js and Electron ABI for a given target and runtime
ΠŸΠ΅Ρ€Π΅ΠΉΡ‚ΠΈ ΠΊ Ρ„Π°ΠΉΠ»Ρƒ
electron-node-abi-updater[bot] 6788e4be5e feat: update ABI registry 2024-02-20 15:04:10 +00:00
.circleci chore: bump electronjs/node in .circleci/config.yml to 2.2.1 (#166) 2024-02-14 12:14:57 -06:00
.github build(deps): bump actions/cache from 3.3.2 to 4.0.0 (#165) 2024-01-31 18:59:13 -08: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
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 2024-02-20 15:04:10 +00:00
index.js fix: do not assume targets are sorted, fixes #113 2021-10-21 12:50:38 -07:00
package.json build: remove @continuous-auth/semantic-release-npm (#154) 2023-11-28 15:33:41 -08:00
yarn.lock build: remove @continuous-auth/semantic-release-npm (#154) 2023-11-28 15:33:41 -08: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