JSPM

display-image

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 39
  • Score
    100M100P100Q55813F
  • License MIT

Package Exports

  • display-image

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (display-image) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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