feat: add bun installation command to documentation

This commit is contained in:
Harvey Zhao committed 2026-04-04 10:35:07 +08:00
1 parent 4b75df286a
commit 23c8f46878
3 files changed
+20

No files matched your search

+12
View File
@@ -63,6 +63,18 @@ Or install with `yarn`:
$ yarn add artplayer $ yarn add artplayer
``` ```
Or install with `pnpm`:
```bash
$ pnpm add artplayer
```
Or install with `bun`:
```bash
$ bun add artplayer
```
```js ```js
import Artplayer from 'artplayer' import Artplayer from 'artplayer'
``` ```
@@ -16,6 +16,10 @@ yarn add artplayer
pnpm add artplayer pnpm add artplayer
``` ```
```bash [bun]
bun add artplayer
```
```html [script] ```html [script]
<script src="path/to/artplayer.js"></script> <script src="path/to/artplayer.js"></script>
``` ```
@@ -16,6 +16,10 @@ yarn add artplayer
pnpm add artplayer pnpm add artplayer
``` ```
```bash [bun]
bun add artplayer
```
```html [script] ```html [script]
<script src="path/to/artplayer.js"></script> <script src="path/to/artplayer.js"></script>
``` ```