Skip to content

Instantly share code, notes, and snippets.

@ghSP
Created June 22, 2019 18:17
Show Gist options
  • Save ghSP/81ac3bd9fc2123a5c5f4ac166add30be to your computer and use it in GitHub Desktop.
Save ghSP/81ac3bd9fc2123a5c5f4ac166add30be to your computer and use it in GitHub Desktop.
get-version
exports.major = process.version.split('.')[0];
exports.minor = process.version.split(/(v\d+\.\d+)/)[1];
exports.patch = process.version;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment