<terminal-window>

A vanilla JavaScript web component for simulating terminal interfaces with typing effects, command history, and virtual filesystem support.

Features

Quick Start

Installation

Install via npm:

npm install @profpowell/terminal-window

Or use a CDN:

<script type="module" src="https://cdn.jsdelivr.net/npm/@profpowell/terminal-window/dist/terminal-window.js"></script>

Basic Usage

<terminal-window theme="dark" prompt="$ " welcome="Welcome! Type 'help' for commands." ></terminal-window> <script type="module"> import '@profpowell/terminal-window'; </script>

With Custom Commands

<terminal-window id="my-terminal"></terminal-window> <script type="module"> import '@profpowell/terminal-window'; const terminal = document.getElementById('my-terminal'); terminal.registerCommand('greet', (args) => { return `Hello, ${args[0] || 'World'}!`; }); </script>

See more examples in the Demos or read the full API documentation.

Related Components