mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
691 B
691 B
Installation
Install Mediabunny using your favorite package manager:
::: code-group
npm install mediabunny
yarn add mediabunny
pnpm add mediabunny
bun add mediabunny
:::
Then, simply import it like this:
import { ... } from 'mediabunny'; // ESM
const { ... } = require('mediabunny'); // or CommonJS
ESM is preferred because it gives you tree shaking.
You can also just include the library using a script tag in your HTML:
<script src="path/to/mediabunny.js"></script>
You can download the built distribution file from the releases page.