getPackageManagerCommands
jsxhook
Return command helpers for the given package manager
Terminal
$termuijs render get-package-manager-commands
Installation
$ bunx termuijs add get-package-manager-commands
Copies the source into src/components/get-package-manager-commands/ and installs @termuijs/jsx.
Usage
ts
import { getPackageManagerCommands } from '@termuijs/jsx'ts
const { value, set, reset } = getPackageManagerCommands({
initial: undefined,
})API Reference
getPackageManagerCommands
| Prop | Type | Default | Description |
|---|---|---|---|
initial | T | undefined | — | Initial value |
persist | boolean | false | Persist to storage |
key | string | — | Storage key |