# @learnly/simple-reader

> Read input line by line, synchronously. Similar to Java Scanner

Latest version **1.0.3** (published 2022-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @learnly/simple-reader
pnpm add @learnly/simple-reader
yarn add @learnly/simple-reader
bun add @learnly/simple-reader
```

## 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 | 2022-01-03 |
| First published | 2021-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Zaid Qureshi |
| Maintainers | zaid.qureshi2 |
| Keywords | reader, env-reader, simple-reader, synchronous-reader |

## Links

- npm: https://www.npmjs.com/package/@learnly/simple-reader
- Repository: https://github.com/zaidqureshi2/simple-reader
- Homepage: https://github.com/zaidqureshi2/simple-reader#readme
- Issues: https://github.com/zaidqureshi2/simple-reader/issues
- npm.io page: https://npm.io/package/@learnly/simple-reader

## Dependencies (1)

- [readline-sync](https://npm.io/package/readline-sync.md) ^1.4.10

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2022-01-03
- 1.0.2 — 2022-01-02
- 1.0.1 — 2021-12-24
- 1.0.0 — 2021-12-24

## README

### Intro

Simple reader sync reader that will first try to provide lines from `process.env.INPUT_LINES`, otherwise wait for input. Waiting for input only works if TTY is supported.

### Usage

#### nextLine()

Get next line either from `process.env.INPUT_LINES` or from terminal.

```
const {nextLine} = require('@learnly/simple-reader');

const myInput = nextLine();
```

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