Muqriz 48f16bfc3e initail first | 4 months ago | |
---|---|---|
.. | ||
node_modules | 4 months ago | |
README.md | 4 months ago | |
electron-versions.js | 4 months ago | |
index.js | 4 months ago | |
package.json | 4 months ago | |
test.js | 4 months ago | |
types.d.ts | 4 months ago |
Get the maximum Node-API version supported for a specific version of node or Electron.
const { fromNodeVersion, fromElectronVersion } = require("node-api-version");
fromNodeVersion("9.0.0"); // undefined
fromNodeVersion("12.13.0"); // 5
fromElectronVersion("2.0.0"); // undefined
fromElectronVersion("13.0.0"); // 7
fromElectronVersion("15.0.0-nightly.20210629"); // 8