@uni-use/speak
v1.0.0-beta.1
Published
A simple utility to get the package manager information which used in the project
Downloads
6
Readme
@uni-use/speak
A simple utility to get the package manager information which used in the project
Install
# use pnpm
$ pnpm install -D @uni-use/speak
# use yarn
$ yarn add -D @uni-use/speak
# use npm
$ npm install -D @uni-use/speak
Usage
- use
@uni-use/speak
in async mode s
import { pmInfo } from '@uni-use/speak'
pmInfo().then(info => {
console.log('The package manager is: ', info) // { name: 'pnpm', version: '7.26.1' } | null
})
- use
@uni-use/speak
in sync mode
import { pmInfoSync } from '@uni-use/speak'
console.log('The package manager is: ', pmInfoSync()) // { name: 'pnpm', version: '7.26.1' } | null
Issues & Support
Please open an issue here.