Socket
Socket
Sign inDemoInstall

node-api-version

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-api-version

Gets the supported Node-API version for a specific node or electron version


Version published
Maintainers
1
Created

Readme

Source

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

FAQs

Last updated on 02 Dec 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc