Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vhs.js

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vhs.js

A simple library to use charmbracelet/vhs to generate terminal gifs

  • 0.0.18
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
Maintainers
1
Weekly downloads
 
Created
Source

vhs.js

npm package Build Status Downloads Issues Code Coverage Commitizen Friendly Semantic Release

A simple JS library to use [https://github.com/charmbracelet/vhs](the vhs tool) to generate terminal gifs

Install

npm install vhs.js

Usage

import { exportGif, exportGifToFile } from 'vhs.js';

const tape = `
  Require echo
  
  Set Shell "bash"
  Set FontSize 32
  Set Width 1200
  Set Height 600
  
  Type "echo 'Welcome to VHS!'" Sleep 500ms  Enter
`;

await exportGifToFile(tape, 'tape.gif');

// or do it in memory
const gifBuffer = await exportGif(tape);

Keywords

FAQs

Package last updated on 08 Nov 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc