# Node Version > Node version.
## Usage ```javascript var NODE_VERSION = require( '@stdlib/process/node-version' ); ``` #### NODE_VERSION Node version. ```javascript console.log( NODE_VERSION ); // => ```
## Notes - In browser environments and environments other than Node.js the Node version is equal to `null`.
## Examples ```javascript var semver = require( 'semver' ); var NODE_VERSION = require( '@stdlib/process/node-version' ); if ( semver.lt( NODE_VERSION, '1.0.0' ) ) { console.log( 'Running on a pre-io.js version...' ); } else if ( semver.lt( NODE_VERSION, '4.0.0' ) ) { console.log( 'Running on an io.js version...' ); } else { console.log( 'Running on a post-io.js version...' ); } ```
* * *
## CLI
### Usage ```text Usage: node-version [options] Options: -h, --help Print this message. -V, --version Print the package version. ```
### Examples ```bash $ node-version ```