kevva / Ink Image
Licence: mit
Image component for Ink
Stars: ✭ 60
Programming Languages
javascript
184084 projects - #8 most used programming language
ink-image
Image component for Ink
Currently only supported on iTerm >=3.
Install
$ npm install ink-image
Usage
import React from 'react';
import {render} from 'ink';
import Image from 'ink-image';
render(
<Image preserveAspectRatio src='unicorn.jpg' width='50%'/>
);
API
<Image/>
Besides the props below, it accepts props allowed in ansi-escapes
.
src
Type: string | Buffer
Path to an image or the image as a Buffer
.
alt
Type: string
Alternative text to show when an image can't be displayed.
License
MIT © Kevin Mårtensson
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].