New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

remark-asciinema

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-asciinema

A remark plugin that transforms Asciinema links into embedded players or screenshots.

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

remark-asciinema

A remark plugin that transforms asciinema links into either an embedded asciinema player or screenshot that links to the recording.

npm version npm downloads

Features

  • 🪄 Automatically converts asciinema links into:
    • <script> embeds for live asciinema players
    • <img> tags for static cast thumbnails that link to the recording

Example

Example

Before:

Check out this demo: https://asciinema.org/a/12345

After (HTML output):

Check out this demo:
<script
  id="asciicast-12345"
  src="https://asciinema.org/a/12345.js"
  async
></script>

Installation

pnpm install remark-asciinema

Usage

import { remark } from "remark";
import asciinema from "remark-asciinema";

const file = await remark()
  .use(asciinema)
  .process("Check out: https://asciinema.org/a/abc123");

console.log(String(file));

Note: After integrating the Remark plugin, ensure you include the necessary asciinema JavaScript and CSS files to enable proper playback and styling. You can load them via UNPKG:

Keywords

asciinema

FAQs

Package last updated on 14 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts