{"_id":"at-least-node","_rev":"1768","name":"at-least-node","description":"Lightweight Node.js version sniffing/comparison","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"time":{"modified":"2021-06-03T09:56:02.000Z","created":"2020-02-01T22:11:36.789Z","1.0.0":"2020-02-01T22:11:36.789Z"},"users":{},"author":{"name":"Ryan Zimmerman","email":"opensrc@ryanzim.com"},"repository":{"type":"git","url":"git+https://github.com/RyanZim/at-least-node.git"},"versions":{"1.0.0":{"name":"at-least-node","version":"1.0.0","description":"Lightweight Node.js version sniffing/comparison","keywords":["semver","feature"],"homepage":"https://github.com/RyanZim/at-least-node#readme","bugs":{"url":"https://github.com/RyanZim/at-least-node/issues"},"repository":{"type":"git","url":"git+https://github.com/RyanZim/at-least-node.git"},"license":"ISC","author":{"name":"Ryan Zimmerman","email":"opensrc@ryanzim.com"},"main":"index.js","scripts":{"test":"ava"},"devDependencies":{"ava":"^3.1.0","rewire":"^4.0.1","semver":"^7.1.2"},"engines":{"node":">= 4.0.0"},"gitHead":"6b45626accdfe9431ef860c55f07420f7df2aaa7","_id":"at-least-node@1.0.0","_nodeVersion":"13.7.0","_npmVersion":"6.13.6","dist":{"shasum":"602cd4b46e844ad4effc92a8011a3c46e0238dc2","size":1558,"noattachment":false,"key":"/at-least-node/-/at-least-node-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/at-least-node/download/at-least-node-1.0.0.tgz"},"maintainers":[{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"_npmUser":{"name":"ryanzim","email":"opensrc@ryanzim.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/at-least-node_1.0.0_1580595096651_0.7786210010615195"},"_hasShrinkwrap":false,"publish_time":1580595096789,"_cnpm_publish_time":1580595096789}},"readme":"# at-least-node\n\n![npm](https://img.shields.io/npm/v/at-least-node)\n![node](https://img.shields.io/node/v/at-least-node)\n![NPM](https://img.shields.io/npm/l/at-least-node)\n\nSometimes 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.\n\n| Package         | Size    |\n| --------------- | ------- |\n| `at-least-node` | 2.6 kB  |\n| `semver`        | 75.5 kB |\n\n```js\nconst atLeastNode = require('at-least-node')\natLeastNode('10.12.0')\n// -> true on Node 10.12.0+, false on anything below that\n```\n\nWhen passing in a version string:\n\n- You cannot include a leading `v` (i.e. `v10.12.0`)\n- You cannot omit sections (i.e. `10.12`)\n- You cannot use pre-releases (i.e. `1.0.0-beta`)\n- There is no input validation, if you make a mistake, the resulting behavior is undefined\n","_attachments":{},"homepage":"https://github.com/RyanZim/at-least-node#readme","bugs":{"url":"https://github.com/RyanZim/at-least-node/issues"},"license":"ISC"}