https://github.com/vajahath/installed-version
Get the installed version of the package
https://github.com/vajahath/installed-version
nodejs npm-package version
Last synced: 4 months ago
JSON representation
Get the installed version of the package
- Host: GitHub
- URL: https://github.com/vajahath/installed-version
- Owner: vajahath
- Created: 2017-07-16T11:14:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-26T06:32:53.000Z (almost 8 years ago)
- Last Synced: 2025-03-06T14:04:04.592Z (4 months ago)
- Topics: nodejs, npm-package, version
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/installed-version
- Size: 70.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# installed-version
Get version of your app[](https://www.npmjs.com/package/installed-version)
[](https://travis-ci.org/vajahath/installed-version)
[](https://github.com/prettier/prettier)
[]()
[](https://github.com/vajahath/generator-ts-np)## Install
```
npm i --save installed-version
```## How it works?
- goes to your application root
- fetches `package.json`
- extracts version and returns it> Note: :warning: You can't use this package for cli applications.
## Usage
```js
const version = require('installed-version');let v = version();
console.log(v) // '1.0.0'
```
## Change log
- **1.0.0**
- initial stable release
[](https://github.com/vajahath/generator-ts-np)
## Licence
MIT © [Vajahath Ahmed](https://twitter.com/vajahath)