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
- Host: GitHub
- URL: https://github.com/pushkarsinghh/flossum
- Owner: pushkarsinghh
- License: mit
- Created: 2025-07-02T16:53:30.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-07-09T13:02:27.000Z (11 months ago)
- Last Synced: 2025-07-10T00:36:40.280Z (11 months ago)
- Topics: animation, cli, javascript, node-module, npm-package, terminal
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/flossum
- Size: 1.26 MB
- Stars: 2
- Watchers: 0
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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 โจ