Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 13 hours 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-26T06:32:53.000Z (over 7 years ago)
- Last Synced: 2025-01-11T15:08:42.209Z (8 days 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[![npm](https://img.shields.io/npm/v/installed-version.svg)](https://www.npmjs.com/package/installed-version)
[![Travis](https://img.shields.io/travis/vajahath/installed-version.svg)](https://travis-ci.org/vajahath/installed-version)
[![styled with prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![npm](https://img.shields.io/npm/dt/installed-version.svg)]()
[![Built with generator-ts-np](https://img.shields.io/badge/scaffolding-ts_np-2699ad.svg)](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
[![used version of ts-np generator](https://img.shields.io/badge/ts--np-v0.0.24-a5a5a5.svg?style=flat-square)](https://github.com/vajahath/generator-ts-np)
## Licence
MIT © [Vajahath Ahmed](https://twitter.com/vajahath)