# readlinesyn

> Reading a text file line by line, synchrony version

Latest version **0.3.2** (published 2022-04-05) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2022-04-05 |
| First published | 2020-02-09 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Chunfeng Yang |
| Maintainers | cocoonyang |
| Keywords | file, line by line, synchrony |

## Links

- npm: https://www.npmjs.com/package/readlinesyn
- Repository: https://github.com/cocoon-yang/readlinesyn
- Issues: https://github.com/cocoon-yang/readlinesyn/issues
- npm.io page: https://npm.io/package/readlinesyn

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.3.2 (latest) — 2022-04-05
- 0.3.1 — 2020-07-08
- 0.3.0 — 2020-07-08
- 0.2.3 — 2020-02-22
- 0.2.2 — 2020-02-22
- 0.2.1 — 2020-02-09
- 0.2.0 — 2020-02-09

## README

# readlinesyn

Reading a text file line by line in synchrony mode.

# Methods
  - open( filePath ) 
  - close()
  - next()
  - isEOF()

# Installation

readlinesyn requires [Node.js](https://nodejs.org/) v4+ to run.


```
$ npm install readlinesyn
```  


# Example

```
const LineByLine = require('readlinesyn'); 
 
var filename = './result.txt';
var liner = new LineByLine();

var theline; 
// the default encode is 'utf8'
// liner._encode = "utf8";
liner.open( filename ); 

while( !liner.isEOF() )
{
   theline = liner.next();
   console.log( 'READ LINE: ' + theline );
}
 
liner.close(); 
```

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