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

https://github.com/iamogbz/animaterm

📟 Automatically create terminal animations from script
https://github.com/iamogbz/animaterm

animation automation console gif script terminal

Last synced: about 2 months ago
JSON representation

📟 Automatically create terminal animations from script

Awesome Lists containing this project

README

          

# Animaterm

📟 Automatically create terminal animations from script

## Usage

Install from the github repo

```sh
npm i -g 'github:iamogbz/animaterm'
```

> You do not need the peer dependencies except you need to render in the `gif` format
>
> The terminalizer (`tlz`) renderer produces better gifs but requires an additional dependency
>
> TODO: support rendering fancy console text colors and formatting

Run the `animaterm` bin with cli options

```sh
animaterm script.json output.svg
```

> Also supports [`.gif`](./docs/usage.gif) as the output format
>
> Set the renderer using the output extension e.g. `output.gif` or `output.tlz`

![demo](./docs/usage.svg)

> This demo animation was created using only `animaterm`

### Script

Samples available in the [end-to-end scripts](./e2e/).

This is a `JSON` file with the following structure:

```ts
Step[]
```

That is a `JSON` array at the root where each `Step` is defined by the following interface:

https://github.com/iamogbz/animaterm/blob/027ff13/src/types.d.ts#L49-L89

### Config

Defined by the interface `Config`:

https://github.com/iamogbz/animaterm/blob/027ff13/src/types.d.ts#L1-L35

> TODO: add instructions on overriding the default config

## Inspirations

-
-