1.0.6 • Published 3 years ago

node-image-prompt v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

image prompt

npm.io 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

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago