2.0.0 • Published 2 years ago

parse-node-version v2.0.0

Weekly downloads
2,567,703
License
MIT
Repository
github
Last release
2 years ago

parse-node-version

NPM version Downloads Build Status Coveralls Status

Turn node's process.version into something useful.

Usage

var nodeVersion = require('parse-node-version')(process.version);

console.log(
  nodeVersion.major,
  nodeVersion.minor,
  nodeVersion.patch,
  nodeVersion.pre,
  nodeVersion.build
);

API

parseVersion(nodeVersionString)

Takes a node version string (usually process.version) and returns an object with the major/minor/patch (which will all be numbers) and pre/build keys (which will always be a string). If the version doesn't contain any pre-release or build information, the properties will be returned as empty string.

License

MIT

lessdefault-resolutionreact-native-bluetooth2killi8n-react-native-fast-imagern-send-smsreact-native-template-rfbaseairscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-moduledeneme323112@ntt_app/react-native-custom-notificationreact-native-covid-sdkreact-native-thanh-toast-library@thanhnguyen14797/react-native-thanh-toast-libraryreact-native-printer-brothersrn-pdf-reader-offline@infinitebrahmanuniverse/nolb-parse-@everything-registry/sub-chunk-2410@geeky-apo/react-native-advanced-clipboardless-4.2.0-4261less_browser_fixjeuxuihello_test_my_webpacknative-kakao-loginnative-google-loginnative-apple-loginm2m-chartjs-plugin-crosshairnpm_qwertynpm_one_12_34_1_npm_one_1_2_3npm_one_2_2n8n-nodes-caldavmathquillcustommathquillcustomlib@brucearmstrong/sass-librarylayui-customef-h5emily-webpackgulpfile-confighcm-jsfancy-log-levelsfenglin-uploadergenese-angular-demorangoli-cssraact-native-arunramya151presonarreac-native-arun-ramya-testreact-native-biometric-authenticatereact-native-badge-controlreact-native-android-advertising-idreact-native-bubble-chartreact-native-brother-projectreact-native-contact-listreact-native-flyyreact-native-dsphoto-modulereact-native-arun-ramya-testreact-native-arunjeyam1987react-native-arunmeena1987react-native-arunramya151react-native-cplusreact-native-create-video-thumbnailreact-native-responsive-sizereact-native-sayhello-modulereact-native-modal-progress-barreact-native-sample-android-toast-version10react-native-ytximkitreact-native-template-nascam-templatereact-native-vnpay-merchantreact-native-test-module-hhhreact-native-touch-id-namgyureact-native-transtracker-libraryreact-native-twilio-voice-sdk-upgradereact-native-template-vifereact-native-testwebreact-native-hlf-wrapperpeter.you.jqweui.test.publishpayutesting@enirisdev/angular-google-charts@hawkingnetwork/react-native-tab-view@headgum/tko-mapping@hemith/react-native-tnk@felipesimmi/react-native-datalogic-module@faizanhaider/iconsax@igniswap/igni-swap-lib@iyansr/react-native-image-viewing@isogand/react-native-sliding-countertestnpm_lmn@meerasolution/react-native-ms-upi-payment@min98/layui-custom@ko-developerhong/react-native-multiple-image-pickervue-test-shh-uitohsaka888-use-breakpoint@lofcz/sweetalert2-neutral@lightdash/cli@navabi/react-native-ssl-pinning@litedexdev/litedex-core-swapsharingcomponent2rn-tm-notifyrn-session-multiplier-demo
2.0.0

2 years ago

1.0.1

5 years ago

1.0.0

5 years ago