/display-image

:rainbow: Display images in the terminal

Primary LanguageJavaScriptMIT LicenseMIT

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