0.0.2 • Published 4 months ago

get-lib-version v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

get-lib-version

这个包是用来获取项目中具体某一个包的版本号,因为你可能是用的是 ~ 或者 ^ 这种符号,所以你可能需要一个具体的版本号,这个包就是用来解决这个问题的。

安装

npm install get-lib-version

使用方法

import getLibVersion from 'get-lib-version'

const version = await getLibVersion('typescript')
console.log(version) // 输出具体的版本号,例如:4.9.5

:coffee:

buy me a cup of coffee

License

MIT

Sponsors

0.0.2

4 months ago

0.0.1

4 months ago