Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

at-least-node

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

at-least-node

Lightweight Node.js version sniffing/comparison

    1.0.0latest

Version published
Maintainers
1
Weekly downloads
14,113,037
increased by1.87%

Weekly downloads

Changelog

Source

1.0.0

Initial release

Readme

Source

at-least-node

npm node NPM

Sometimes you need to check if you're on at least a given Node.js version, but you don't want to pull in the whole semver kitchen sink. That's what at-least-node is for.

PackageSize
at-least-node2.6 kB
semver75.5 kB
const atLeastNode = require('at-least-node') atLeastNode('10.12.0') // -> true on Node 10.12.0+, false on anything below that

When passing in a version string:

  • You cannot include a leading v (i.e. v10.12.0)
  • You cannot omit sections (i.e. 10.12)
  • You cannot use pre-releases (i.e. 1.0.0-beta)
  • There is no input validation, if you make a mistake, the resulting behavior is undefined

Keywords

FAQs

What is at-least-node?

Lightweight Node.js version sniffing/comparison

Is at-least-node popular?

The npm package at-least-node receives a total of 11,488,557 weekly downloads. As such, at-least-node popularity was classified as popular.

Is at-least-node well maintained?

We found that at-least-node demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 01 Feb 2020
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc