I need to programmatically access the current node version running in a library I am writing. Can\'t seem to find this in the docs.
Use semver to compare process.version:
process.version
const semver = require('semver'); if (semver.gte(process.version, '0.12.18')) { ... }