Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ngryman/npm-v
- Owner: ngryman
- License: mit
- Created: 2017-02-20T13:36:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-15T00:26:21.000Z (almost 7 years ago)
- Last Synced: 2024-06-20T05:54:03.585Z (3 months ago)
- Topics: npm, version
- Language: JavaScript
- Size: 30.3 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
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-vYup 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)