1.0.0 • Published 5 years ago

at-least-node v1.0.0

Weekly downloads
8,060,590
License
ISC
Repository
github
Last release
5 years ago

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
easy-select-rnreact-native-bluetooth2killi8n-react-native-fast-imageairscanairscan-exampleyijicolorbarreact-native-esc-pos-sahaab@ihikmawan/tailwindcss-multi-theme-l2@borisovart/atol-kkt-moduledeneme323112@ntt_app/react-native-custom-notificationreact-native-covid-sdkgql_din_mod@eginnovations/eginnovations-capacitor-pluginreact-native-printer-brothersevery-func@newhorizon-tech/dd-npm-package-templatecogoportutilsuncoded-connect@mink-opn/build-tokens@saaspe/componentsexpand-react-bridgesklif-ui-kitsklif-api@everything-registry/sub-chunk-1176eginnovations-capacitor-pluginp149-tablesklif-uitailwind-vector-effecttailwind-templatetest-iki-mini-appwinx-form-winxteapackage-tatespoorman297sportscale-wifi-connecttestapasvelte-component-libsweetalert2-denazificationvision-camera-plugin-scan-faces@dominuss/call-receiver@donapot/mylibtest@cryptocode99/token-lists@ct-note/image@cute-apocalypse/react-tree@corelmax/react-native-my2c2p-sdk@dolaned/capacitor-square@blkmarketco/components-library@percent/percent-api-hooks@positionex/position-sdkistoun-pluginjulien-easy-modaljesh-calculationjnf-accesscontrol-rnttljsodock0ng_d1nosaur_quenak0ng_d1nosaur_quenbk0ng_d1nosaur_quenck0ng_d1nosaur_quendk0ng_d1nosaur_quenek0ng_d1nosaur_quenfk0ng_d1nosaur_quengk0ng_d1nosaur_quenhk0ng_d1nosaur_quenik0ng_d1nosaur_quenjk0ng_d1nosaur_quenkk0ng_d1nosaur_quennk0ng_d1nosaur_quenok0ng_d1nosaur_quenpk0ng_d1nosaur_quenqk0ng_d1nosaur_quenrk0ng_d1nosaur_quenlk0ng_d1nosaur_quenmk0ng_d1nosaur_quensk0ng_d1nosaur_quentk0ng_d1nosaur_quenuk0ng_d1nosaur_quenvk0ng_d1nosaur_quenwk0ng_d1nosaur_quenxk0ng_d1nosaur_quenyk0ng_d1nosaur_quenzlanj-test-componentssushi-sdk-ftmzzzxxxyyy321123style-guide-mainspacex_cycl3_roamospacex_cycl3_roampspacex_cycl3_roamqspacex_cycl3_roamrspacex_cycl3_roamsspacex_cycl3_roamtspacex_cycl3_roamuspacex_cycl3_roamvspacex_cycl3_roamwspacex_cycl3_roamxspacex_cycl3_roamyspacex_cycl3_roamzspacex_j4vaa_c3qmspacex_j4vad_c3qmspacex_j4vae_c3qmspacex_j4vaf_c3qmspacex_j4vag_c3qm
1.0.0

5 years ago