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

https://github.com/pushkarsinghh/flossum

โœจ TextFX for Terminals
https://github.com/pushkarsinghh/flossum

animation cli javascript node-module npm-package terminal

Last synced: 11 months ago
JSON representation

โœจ TextFX for Terminals

Awesome Lists containing this project

README

          

# ๐ŸŒธ Flossum

> ๐ŸŽฌ Beautiful and minimal terminal animations for your CLI projects, scripts, and creative coding. Bring your text to life with expressive effects.

---

## โœจ Features

* โŒจ๏ธ Typewriter effect (`typeOut`)
* ๐ŸŒŠ Wavy text animation (`wave`)
* ๐ŸŒˆ Color pulsing effect (`colorPulse`)
* ๐Ÿ” Spinner animation (`spinner`)
* ๐Ÿคฏ Glitch text effect (`glitch`)
* ๐Ÿงฉ Scramble decoder effect (`scramble`)
* ๐ŸŽž Frame-based ASCII animation player (`playFrames`)
* ๐Ÿ…ฐ๏ธ ASCII art text rendering (`asciiArt`)

---

## ๐Ÿ“ฆ Installation

```bash
npm install flossum
```

Or for CLI usage:

```bash
npm install -g flossum
```

---

## ๐Ÿงช Usage (API)

```js
import flossum from 'flossum';

await flossum.typeOut("Hello!");
await flossum.wave("Wavy Text");
await flossum.glitch("Glitchy Output");
await flossum.scramble("Scrambled Message");
await flossum.spinner("Loading...");
await flossum.log(effects.asciiArt("ASCII!", { font: "block", colors: ["cyan", "magenta"] }));

const frames = ["[= ]", "[== ]", "[=== ]", "[====]", "[=== ]", "[== ]", "[= ]"];
await flossum.playFrames(frames, { delay: 100, repeat: 2 });
```

---

## โš™๏ธ CLI Usage

```bash
flossum typeOut "Hello World" 60
flossum reverseType "Backwards magic" 60
flossum wave "Wavy Text" --amplitude 3
flossum colorPulse "Pulse!" --colors red,green,blue --duration 1000
flossum glitch "Glitch!" --intensity 4
flossum scramble "Secret..." --delay 50
flossum rainbow "๐ŸŒˆ" --duration 2000
flossum spinner "Please wait..."
flossum progressBar --width 40 --total 100
flossum playFrames --frames "[= ]" "[==]" "[===]" --delay 100 --repeat 2
```

```bash
flossum --help
```

> Lists all available animations and usage instructions.

---

## ๐ŸŽฌ Demo

```bash
node examples/demo.js
node examples/asciiArtDemo.js
```

This file runs a showcase of all available animations. Perfect for testing or showing off!

---

## ๐Ÿ“ Project Structure

```
flossum/
โ”œโ”€โ”€ lib/
โ”‚ โ”œโ”€โ”€ core/ # Utilities and frame player
โ”‚ โ”œโ”€โ”€ simple/ # Basic animations
โ”‚ โ””โ”€โ”€ effects/ # Text effects (wave, glitch, etc.)
โ”œโ”€โ”€ examples/ # Example usage scripts
โ”œโ”€โ”€ bin/ # CLI entrypoint
โ”œโ”€โ”€ index.js # Export API
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ README.md
```

---

## ๐Ÿง‘โ€๐Ÿ’ป Contributing

1. Fork the repo
2. Create a new branch: `git checkout -b feature/new-animation`
3. Add your effect in the correct folder (simple/effects/core)
4. Test it in `examples/`
5. Open a PR โค๏ธ

---

## ๐Ÿงพ License

MIT ยฉ Pushkar Singh

---

## ๐ŸŒ Links

* GitHub: [github.com/pushkarsingh/flossum](https://github.com/pushkarsingh/flossum)
* NPM: [npmjs.com/package/flossum](https://www.npmjs.com/package/flossum)
* Website: Coming soon โœจ