Muqriz 48f16bfc3e initail first | il y a 4 mois | |
---|---|---|
.. | ||
node_modules | il y a 4 mois | |
README.md | il y a 4 mois | |
electron-versions.js | il y a 4 mois | |
index.js | il y a 4 mois | |
package.json | il y a 4 mois | |
test.js | il y a 4 mois | |
types.d.ts | il y a 4 mois |
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