# at-least-node

> Lightweight Node.js version sniffing/comparison

Latest version **1.0.0** (published 2020-02-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install at-least-node
pnpm add at-least-node
yarn add at-least-node
bun add at-least-node
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-02-01 |
| First published | 2020-02-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | separate (@types/at-least-node) |
| Module format | CommonJS |
| Node | >= 4.0.0 |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Ryan Zimmerman |
| Maintainers | ryanzim |
| Keywords | semver, feature |

## Links

- npm: https://www.npmjs.com/package/at-least-node
- Repository: https://github.com/RyanZim/at-least-node
- Homepage: https://github.com/RyanZim/at-least-node#readme
- Issues: https://github.com/RyanZim/at-least-node/issues
- npm.io page: https://npm.io/package/at-least-node

## Recent versions

- 1.0.0 (latest) — 2020-02-01

## README

# at-least-node

![npm](https://img.shields.io/npm/v/at-least-node)
![node](https://img.shields.io/node/v/at-least-node)
![NPM](https://img.shields.io/npm/l/at-least-node)

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`](https://www.npmjs.com/package/semver) kitchen sink. That's what `at-least-node` is for.

| Package         | Size    |
| --------------- | ------- |
| `at-least-node` | 2.6 kB  |
| `semver`        | 75.5 kB |

```js
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

---
_Source: https://npm.io/package/at-least-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
