Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inDemoInstall

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
    Github

Version published
Maintainers
1
Weekly downloads
17,368,960
increased by9.89%

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 16,540,034 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 because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 01 Feb 2020

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket[email protected]

Product

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc