项目作者: vajahath

项目描述 :
Get the installed version of the package
高级语言: TypeScript
项目地址: git://github.com/vajahath/installed-version.git
创建时间: 2017-07-16T11:14:25Z
项目社区:https://github.com/vajahath/installed-version

开源协议:

下载


installed-version

Get version of your app

npm
Travis
styled with prettier
npm
Built with generator-ts-np

Install

  1. 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

  1. const version = require('installed-version');
  2. let v = version();
  3. console.log(v) // '1.0.0'

Change log

  • 1.0.0
    • initial stable release


used version of ts-np generator

Licence

MIT © Vajahath Ahmed