get-npm-version
Version:
Returns the NPM version installed in your environment
20 lines (11 loc) • 542 B
Markdown
<p align="center"><a href="https://nodei.co/npm/get-npm-version/"><img src="https://nodei.co/npm/get-npm-version.png"></a></a></p>
* Simple NPM package that returns installed NPM version or `null`.
`$ npm i get-npm-version`
- Returns a `String` with the currently installed NPM version, or `null` on error.
```javascript
const getNpmVersion = require('get-npm-version');
console.log('Your installed NPM Version is: ' + getNpmVersion());
```