JSPM

@xterm/addon-fit

0.10.0-beta.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 369953
  • Score
    100M100P100Q192681F
  • License MIT

Package Exports

  • @xterm/addon-fit
  • @xterm/addon-fit/lib/addon-fit.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@xterm/addon-fit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@xterm/addon-fit

An addon for xterm.js that enables fitting the terminal's dimensions to a containing element. This addon requires xterm.js v4+.

Install

npm install --save @xterm/addon-fit

Usage

import { Terminal } from '@xterm/xterm';
import { FitAddon } from '@xterm/addon-fit';

const terminal = new Terminal();
const fitAddon = new FitAddon();
terminal.loadAddon(fitAddon);
terminal.open(containerElement);
fitAddon.fit();

See the full API for more advanced usage.