Run server and print any gif in terminal using curl.
Inspired by parrot.live.
original gif
Animated output:
git clone https://github.com/FaetterP/gif-to-terminal.git
cd git-to-terminal
npm i
Next fill config.json
.
{
gifPath: "/giphy.gif", // path to gif
size: 50, // size of final image (symbols)
color: true, // is colored
outputDir: "/frames", // folder for frames
port: 3000, // server port
delay: 20 // delay between print frames
}
Run using ts-node.
npm run dev
Build and run.
npm run build
npm run start
curl localhost:3000