JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27
  • Score
    100M100P100Q68673F
  • License MIT

Wrapper of `asciinema-player` for VitePress documentation sites.

Package Exports

  • @nolebase/ui-asciinema
  • @nolebase/ui-asciinema/asciinema.d.ts
  • @nolebase/ui-asciinema/components/NuAsciinemaPlayer.vue
  • @nolebase/ui-asciinema/components/deps
  • @nolebase/ui-asciinema/components/deps.d.ts
  • @nolebase/ui-asciinema/components/deps.js
  • @nolebase/ui-asciinema/components/deps.mjs
  • @nolebase/ui-asciinema/index
  • @nolebase/ui-asciinema/index.d.ts
  • @nolebase/ui-asciinema/index.js
  • @nolebase/ui-asciinema/index.mjs
  • @nolebase/ui-asciinema/style.css

Readme

@nolebase/ui-asciinema

Wrapper of asciinema-player for VitePress documentation sites.

[!CAUTION]

This package is in Alpha stage.

This package is still in the Alpha stage, and it is not recommended to use it in production. The API may change in the future, and there may be bugs in the current version. Please use it with caution.

[!IMPORTANT]

If you are using VitePress, you will need to add the following configurations to your vite.config.ts file like this:

export default defineConfig(() => {
  return {
    ssr: {
      noExternal: [
        // Add this line to your vite.config.ts
        '@nolebase/ui-asciinema',
      ],
    },
  }
})

For more information about why configure this, please refer to the Server-Side Rendering | Vite documentation.

Install

Npm

npm i @nolebase/ui-asciinema -D

Yarn

yarn add @nolebase/ui-asciinema -D

Pnpm

pnpm add @nolebase/ui-asciinema -D

Documentation

Please refer to Asciinema Player for more information.