vhs.js
TypeScript icon, indicating that this package has built-in type declarations

0.0.18 • Public • Published

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);

Package Sidebar

Install

npm i vhs.js

Weekly Downloads

10

Version

0.0.18

License

MIT

Unpacked Size

13.4 kB

Total Files

9

Last publish

Collaborators

  • orf