Skip to content

1337z/display-image

Repository files navigation

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)
})