1.0.0 • Published 4 years ago

at-least-node v1.0.0

Weekly downloads
8,060,590
License
ISC
Repository
github
Last release
4 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-1176@314oner_npm/universal-components-libraryeginnovations-capacitor-pluginp149-tablesklif-uilib-error@xeyqe/capacitor-tts@anonybit-modules/videoreconstructionmy-library-buttonneural_compressor_ext_lab_customizedneural_compressor_ext_lab_customized_2moonwalkerswap-default-token-listsnative-kakao-loginnative-google-loginmicroend-componentnpm_one_12_34_1_npm_one_1_2_3npm_one_2_2npm_qwertynumhandler@fangdh/typescript-esbuild-2021@enkeledi/react-native-week-month-date-picker@fabwcie/ckeditor5-preview@felipesimmi/react-native-datalogic-module@eliteswap/token-listszzzxxxyyy321123mavectramama-exportermangudinlagirajinluojia-cli-devnative-apple-loginnewdemo1quadratic-sdk@jinhome/jin-cliqudratic-ui@kalkanisys/vue-select@knooks/use-title@kylesferrazza/graphql-relay-updated@ko-developerhong/react-native-multiple-image-pickerreact-flow-highly-customizable-edgesreact-form-component-library@geeky-apo/react-native-advanced-clipboardorganization-robotics-sensors-website-application-electronorganization-algorithm-model-research-website-application-electronorganization-application-ui-ux-website-application-electronorganization-artificial-intelligence-computer-vision-website-application-electronp147-tablep148-table@hproinformatica/functionspileuleuyanteapickupbiz-npm-packagepayutesting@hemith/react-native-tnk@hbglobal/react-native-actions-shortcutspixiu-swap-corepixiuswap-libs-sdknka-gantt-task-reactng-search-dropdown@epigraph/epigraph-analyticsnove-repositoryreact-native-responsive-sizereact-native-sayhello-module@massivepixel/use-queryreact-native-ytximkitreact-native-transtracker-libraryreact-native-video-typoreact-picky-with-clearreact-plugin-package-corereact-native-test-module-hhhreact-native-kakao-maps@lofcz/sweetalert2-neutralreact-native-jsi-device-inforeact-native-is7react-native-flyyreact-native-badge-controlreact-native-dsphoto-module
1.0.0

4 years ago