0.3.3 • Published 10 months ago

asciinema-player-ce v0.3.3

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Asciinema player custom element

This library wraps asciinema-player in a custom element, so it can be used in any framework without needing to run AsciinemaPlayer.create for each player you want to spawn.

Installation

npm

You can use your preferred package manager

npm i asciinema-player-ce
# or
pnpm i asciinema-player-ce
# or
yarn add asciinema-player-ce

import it and use it to define a custom element on your window.

import { useAsciinemaCe } from 'asciinema-player-ce'

useAsciinemaCe()

html

Add the following script to your document

<script src="https://cdn.jsdelivr.net/npm/asciinema-player-ce@latest/lib/asciinema-player.iife.min.js"></script>
<script defer>
  asciinemaPlayerCe.useAsciinemaCe()
</script>

Usage

You can simply use asciinema-player tag.

<!-- put your cast id inside src -->
<asciinema-player src=""></asciinema-player>
0.3.0

10 months ago

0.3.2

10 months ago

0.3.1

10 months ago

0.3.3

10 months ago

0.2.1

12 months ago

0.2.0

2 years ago

0.1.0

2 years ago