installed-version
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

installed-version

Get version of your app

npm Travis styled with prettier npm Built with 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: ⚠️ You can't use this package for cli applications.

Usage

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

Licence

MIT © Vajahath Ahmed

/installed-version/

    Package Sidebar

    Install

    npm i installed-version

    Weekly Downloads

    1

    Version

    1.1.1

    License

    MIT

    Last publish

    Collaborators

    • vaju