Quickly display npm related commands for multiple package managers in your Starlight documentation site.
Want to get started immediately? Check out the getting started guide or check out the demo to see the plugin in action.
Replace the following MDX code:
<Tabs>
<TabItem label="npm">
```sh
npm create astro@latest -- --template starlight
```
</TabItem>
<TabItem label="pnpm">
```sh
pnpm create astro --template starlight
```
</TabItem>
<TabItem label="Yarn">
```sh
yarn create astro --template starlight
```
</TabItem>
</Tabs>
By this one:
<PackageManagers type="create" pkg="astro@latest" args="--template starlight" />
- Support for various package managers: npm, yarn, pnpm, bun & ni.
- Support for various types of command:
add
,create
,dlx
,exec
,install
,remove
&run
. - Synced tabs between each instance on the same page.
- Customizable output with extra arguments, comments & prefixes.
Licensed under the MIT License, Copyright © HiDeoo.
See LICENSE for more information.