/ansi-img

Primary LanguageTypeScript

ansi-img

Best and lightest npm to transform image in ansi caracters
npm

Installation

npm i ansi-img
// other option
yarn add ansi-img

Example:



Functions

Usage

import { imgFileToAnsi, imgBufferToAnsi } from 'ansi-img';

imgFileToAnsi('./image.jpg').then(console.log); //Log an image file in terminal

imgBufferToAnsi(buffer).then(console.log); //Log an image from buffer to terminal

MADE WITH ❤ BY Markox36