# node-image-prompt

> Library made to show up a prompt to display an image

Latest version **1.0.6** (published 2021-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-image-prompt
pnpm add node-image-prompt
yarn add node-image-prompt
bun add node-image-prompt
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2021-04-11 |
| First published | 2021-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 41.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | vinidalvino |
| Keywords | typescript, prompt, image, powershell, windows, gui |

## Links

- npm: https://www.npmjs.com/package/node-image-prompt
- npm.io page: https://npm.io/package/node-image-prompt

## Dependencies (3)

- [nanoid](https://npm.io/package/nanoid.md) ^3.1.22
- [@types/node](https://npm.io/package/@types/node.md) ^14.14.37
- [node-powershell](https://npm.io/package/node-powershell.md) ^4.0.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2021-04-11
- 1.0.5 — 2021-04-11
- 1.0.4 — 2021-04-11
- 1.0.3 — 2021-04-11
- 1.0.2 — 2021-04-11
- 1.0.1 — 2021-04-11
- 1.0.0 — 2021-04-11

## README

# image prompt

![](https://i.imgur.com/PcbGaKt.png)
Display an image prompt from node js


## Example: 
```js
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

---
_Source: https://npm.io/package/node-image-prompt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
