# universal-prompt

> Use `prompt()` in node and the browser

Latest version **1.0.0** (published 2019-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install universal-prompt
pnpm add universal-prompt
yarn add universal-prompt
bun add universal-prompt
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-08-26 |
| First published | 2019-08-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | rangermauve |
| Maintainers | rangermauve |
| Keywords | prompt, browser, node, universal, polyfill |

## Links

- npm: https://www.npmjs.com/package/universal-prompt
- Repository: https://github.com/RangerMauve/universal-prompt
- Homepage: https://github.com/RangerMauve/universal-prompt#readme
- Issues: https://github.com/RangerMauve/universal-prompt/issues
- npm.io page: https://npm.io/package/universal-prompt

## Dependencies (1)

- [prompt-sync](https://npm.io/package/prompt-sync.md) ^4.1.7

## 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.0 (latest) — 2019-08-26

## README

# universal-prompt
Use `prompt()` in node and the browser

```
npm i -s universal-prompt
```

```js
const prompt = require('universal-prompt')

const result = prompt('Please type something and press enter: ')

console.log(`You typed "${result}"`)
```

**Note: Probably won't work in web workers since they don't provide a 'prompt' function.**

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