Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ngryman/npm-v

Get installed npm version
https://github.com/ngryman/npm-v

npm version

Last synced: about 2 months ago
JSON representation

Get installed npm version

Awesome Lists containing this project

README

        

# npm-v

> Get installed npm version

[![travis][travis-image]][travis-url]

[travis-image]: https://img.shields.io/travis/ngryman/npm-v.svg?style=flat
[travis-url]: https://travis-ci.org/ngryman/npm-v

Yup it only does that :tada:

## Install

```bash
npm install --save npm-v
```

## Usage

```js
import npmVersion from 'npm-v'

console.log(npmVersion)
// {
// version: "3.10.8",
// major: 3,
// minor: 10,
// patch: 8
// }
```

## License

MIT © [Nicolas Gryman](http://ngryman.sh)