1.0.0 • Published 7 years ago
@sawyerbutton/get-pkg-version-in-npm-and-yarn v1.0.0
@sawyerB/getPkgVersionInNandY
- Get global package version installed by npm and yarn
Install
npm install @sawyerB/getPkgVersionInNandY
Usage
const getPackageVersion = require('@sawyerB/@sawyerbutton/get-pkg-version-in-npm-and-yarn')
getPackageVersion('@angular/cli').then(version => {
console.log(version.npm);
// => 6.1.3
console.log(version.yarn);
// => 6.1.4
})
License
MIT.2018.sawyerButton
1.0.0
7 years ago