Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

ink-image

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ink-image

Image component for Ink

Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

ink-image Build Status

Image component for Ink

Currently only supported on iTerm >=3.

Install

$ npm install ink-image

Usage

const {h, render} = require('ink');
const Image = require('ink-image');

render((
	<div>
		<Image preserveAspectRatio src='unicorn.jpg' width='50%'/>
	</div>
));

API

<Image/>

Besides the props below, it accepts props allowed in ansi-escapes.

src

Type: string Buffer

Path to an image or a Buffer.

License

MIT © Kevin Mårtensson

Keywords

component

FAQs

Package last updated on 23 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts