New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jsii/check-node

Package Overview
Dependencies
Maintainers
2
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsii/check-node

Checks for supported node versions

  • 1.106.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
299K
decreased by-29.87%
Maintainers
2
Weekly downloads
 
Created
Source

@jsii/check-node

This package can be used to check whether the node runtime used to run an application is known to be compatible with the jsii constellation of packages, and emits a warning to STDERR in case this is not the case.

Usage

Either import the checkNode function from the root of the package, and run it wherever it makes sense (often at the entry point of command line tools):

import { checkNode } from '@jsii/check-node';

// ...
checkNode();
// ...

Alternatively, import @jsii/check-node/run in the location where the check should be performed. This is particularly useful when some of the modules imported by a command line tool may fail loading in unsupported runtimes, and hence the check must run before these are imported.

import '@jsii/check-node/run';

FAQs

Package last updated on 16 Dec 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc