Get the installed version of the package
Get version of your app
npm i --save installed-version
package.json
Note:
You can’t use this package for cli applications.
const version = require('installed-version');
let v = version();
console.log(v) // '1.0.0'
MIT © Vajahath Ahmed