Package Exports
- node-api-version
- node-api-version/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-api-version) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-api-version
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