Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/luciancooper/cli-screencast

Render captured terminal sessions to animated svg
https://github.com/luciancooper/cli-screencast

Last synced: 2 days ago
JSON representation

Render captured terminal sessions to animated svg

Awesome Lists containing this project

README

        



cli-screencast


An easy to use Node.js API for rendering terminal screenshots and recordings to SVG or PNG



ci


coverage


license

---

**Read the docs at [cli-screencast.io](https://cli-screencast.io)**

## Features

* Capture terminal recordings from spawned processes, shell sessions, or writes to `process.stdout`.
* Render screenshots and recordings to svg and png.

## Installation

Install with `npm`:

```bash
npm install cli-screencast
```

Or with `yarn`:

```bash
yarn add cli-screencast
```

## API

#### [`renderScreen`](https://cli-screencast.io/renderScreen)

For rendering a single terminal frame as a screenshot.

#### [`captureShell`](https://cli-screencast.io/captureShell)

For launching and recording a terminal shell session.

#### [`captureSpawn`](https://cli-screencast.io/captureSpawn)

For running and recording a spawned child process.

#### [`captureCallback`](https://cli-screencast.io/captureCallback)

For capturing node.js code within a callback function.

#### [`captureFrames`](https://cli-screencast.io/captureFrames)

For rendering an animated terminal screen capture from an array of content frames.

#### [`renderData`](https://cli-screencast.io/renderData)

For rendering capture data generated by one of the other api methods.

## License

[MIT](LICENSE)