CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
README.md55 linesDownload Raw Back to node-abi
1# Node.js ABI2 3[![Build Status](https://github.com/electron/node-abi/actions/workflows/test.yml/badge.svg)](https://github.com/electron/node-abi/actions/workflows/test.yml)4[![Auto-update ABI JSON file](https://github.com/electron/node-abi/actions/workflows/update-abi.yml/badge.svg)](https://github.com/electron/node-abi/actions/workflows/update-abi.yml)5[![Snyk badge](https://snyk.io/test/github/electron/node-abi/badge.svg)](https://snyk.io/test/github/electron/node-abi)6[![npm version](http://img.shields.io/npm/v/node-abi.svg)](https://npmjs.org/package/node-abi)7 8Get the Node ABI (application binary interface) for a given target and runtime, and vice versa.9 10## Installation11 12```shell13npm install node-abi14```15 16## Usage17 18```javascript19const nodeAbi = require('node-abi')20 21nodeAbi.getAbi('7.2.0', 'node')22// '51'23nodeAbi.getAbi('1.4.10', 'electron')24// '50'25nodeAbi.getTarget('51', 'node')26// '7.2.0'27nodeAbi.getTarget('50', 'electron')28// '1.4.15'29 30nodeAbi.allTargets31// [32//  { runtime: 'node', target: '0.10.48', abi: '11', lts: false },33//  { runtime: 'node', target: '0.12.17', abi: '14', lts: false },34//  { runtime: 'node', target: '4.6.1', abi: '46', lts: true },35//  { runtime: 'node', target: '5.12.0', abi: '47', lts: false },36//  { runtime: 'node', target: '6.9.4', abi: '48', lts: true },37//  { runtime: 'node', target: '7.4.0', abi: '51', lts: false },38//  { runtime: 'electron', target: '1.0.2', abi: '47', lts: false },39//  { runtime: 'electron', target: '1.2.8', abi: '48', lts: false },40//  { runtime: 'electron', target: '1.3.13', abi: '49', lts: false },41//  { runtime: 'electron', target: '1.4.15', abi: '50', lts: false }42// ]43nodeAbi.deprecatedTargets44nodeAbi.supportedTargets45nodeAbi.additionalTargets46nodeAbi.futureTargets47// ...48```49 50## References51 52- https://github.com/lgeiger/electron-abi53- https://nodejs.org/en/download/releases/54- https://github.com/nodejs/Release55