This is a Node.js CLI application written in TypeScript that allows you to encode images using blurhash, it leverages the power of oclif, sharp, blurhash, and terminal-image libraries.
- 📸 Encode images to Blurhash strings
- 🖼️ Decode Blurhash strings to images
- 🌫️ Convert an image to its blurred counterpart
- 🖥️ Optionally render a terminal-friendly preview of the images created
- oclif: A Node.js framework for building powerful CLIs.
- sharp: High-performance image processing library in Node.js.
- blurhash: Generates compact representations of images for efficient retrieval.
- terminal-image: Renders images directly within the terminal.
- mocha & chai: Unit testing framework and assertion library.
$ ./run.js [COMMAND]
TOPICS
plugins List installed plugins.
COMMANDS
convert convert an image file to a blurred image file
decode Decode a given blurhash to an image.
encode Encode a given image to its blurhash.
help Display help for blur-hash-oclif.
plugins List installed plugins.
To run tests
$ npm run test
- oclif: A Node.js framework for building command-line interfaces.
- sharp: A high-performance Node.js library for image processing.
- blurhash: A technique for generating compact representations of images.
- terminal-image: A Node.js library for rendering images directly in the terminal.
- mocha: A JavaScript test framework.
- chai: A BDD / TDD assertion library for node and the browser that can be paired with any testing framework.