# prompt_terminal

> Uma forma mais simples de capturar entrada padrão do sistema(console/terminal).

Latest version **1.0.3** (published 2019-11-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install prompt_terminal
pnpm add prompt_terminal
yarn add prompt_terminal
bun add prompt_terminal
```

## 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.3 |
| Published | 2019-11-30 |
| First published | 2019-11-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Igor Silva |
| Maintainers | pi5 |
| Keywords | prompt, terminal, console, stdin, stdout, input. |

## Links

- npm: https://www.npmjs.com/package/prompt_terminal
- Repository: https://github.com/Pedr0R0cha/prompt_terminal
- Homepage: https://github.com/Pedr0R0cha/prompt_terminal#readme
- Issues: https://github.com/Pedr0R0cha/prompt_terminal/issues
- npm.io page: https://npm.io/package/prompt_terminal

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2019-11-30
- 1.0.2 — 2019-11-28
- 1.0.1 — 2019-11-28
- 1.0.0 — 2019-11-28

## README

# prompt_terminal
Uma forma mais simples de pegar entrada padrão do sistema no NodeJS.

### Segue a forma de uso
#### A função só retorna os tipos string e number
#### É necessário realizar a saída do processo para o processo não ficar esperando o ctrl+c.
```
const prompt = require('prompt_terminal');
async function main() {
  let numeroUm = await prompt('Digite o 1º valor: ');
  let numberTwo = await prompt('type the 2º number: ');
  let soma = numeroUm + numberTwo;
  console.log(`a soma dos numeros é: ${soma}`);
  process.exit(0);
}

main();

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