display-image
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

display-image

Show pictures in terminal

Preview Example image: https://pixabay.com/de/natur-blume-flora-sommer-blatt-3373196/

📦 Install

npm i display-image

📋 Usage

From URL

const displayImage = require("display-image")
 
displayImage.fromURL("https://exmaple.com/image.jpg").then(image => {
  console.log(image)
})

From file

const displayImage = require("display-image")
 
displayImage.fromFile("path/to/image.jpg").then(image => {
  console.log(image)
})

Package Sidebar

Install

npm i display-image

Weekly Downloads

8

Version

1.1.0

License

MIT

Unpacked Size

10.1 kB

Total Files

7

Last publish

Collaborators

  • marvinjwendt