unjs / undocs

Minimal Documentation theme and CLI for shared usage across UnJS projects.

Home Page:https://undocs.pages.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

package manager component

pi0 opened this issue · comments

Generating code for installation with different package managers should be easy with simple components:

::packageManager{action="install", name="crossws", auto=true}

instead of

::code-group

```sh [auto]
npx nypm i crossws
```

```sh [npm]
npm install crossws
```

```sh [Yarn]
yarn add crossws
```

```sh [pnpm]
pnpm add crossws
```

```sh [bun]
bun add crossws
```

::