# ez-inputs

> Easy node.js inputs for your terminal application.

Latest version **1.0.0** (published 2021-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install ez-inputs
pnpm add ez-inputs
yarn add ez-inputs
bun add ez-inputs
```

## 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 | 2021-02-13 |
| First published | 2021-02-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Christopher Arias |
| Maintainers | ariaslabs |
| Keywords | javascript, inputs, input, terminal, node.js, easy, easy-inputs, easy-input, eazy, eazy-inputs, eazy-input, ez-inputs, ez-input, ez |

## Links

- npm: https://www.npmjs.com/package/ez-inputs
- Repository: https://github.com/christopherariasjr/ez-inputs
- Homepage: https://github.com/christopherariasjr/ez-inputs#readme
- Issues: https://github.com/christopherariasjr/ez-inputs/issues
- Funding: paypal.me/cjariasjr
- npm.io page: https://npm.io/package/ez-inputs

## Dependencies (1)

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

## 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.0 (latest) — 2021-02-13

## README

## ez-inputs v1.0.0
---
__Easy__ terminal inputs for an __Easier__ time.

### Installation
---
```
npm install ez-inputs

yarn add ez-inputs
```

### How to use
---

```
const ez = require('ez-inputs');

//Text prompt
//Text prompt returns a "String" data type.

var name = ez.text('What is your name?: );

//Number prompt
//Number prompt returns a Number data type

var name = ez.number('What is your age?: );

//Question propmt allows you to get a closed-ended question from the user
//The array needs to be two objects and have a name and value element
//An optional "default" element is applicable to allow the user to continue with a default answer

var dog = ez.question('Are you a dog? [y/N]: ', [
    {
        name: 'y',
        value: true,
    },
    {
        default: true,
        name: 'n',
        value: false,
    }
])
```

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