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

1.0.6 • Public • Published

image prompt

Display an image prompt from node js

Example:

const { displayImage } = require("../dist")
const { readFileSync } = require("fs")

displayImage(readFileSync("./img_lights.jpg"), "aurealis borealis").then(() => console.log("closed prompt"))

Display an image

Doc:

Display an prompt showing an image:

function displayImage(imageBuf: Buffer, title?: string): Promise<void>

imageBuf — The buffer of the image

title — The title of the window.

Return an promise that will be suceeded when the image prompt will be closed

Package Sidebar

Install

npm i node-image-prompt

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

42.4 kB

Total Files

12

Last publish

Collaborators

  • vinidalvino