# next-line

> Iterator over lines in a string

Latest version **1.1.0** (published 2015-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install next-line
pnpm add next-line
yarn add next-line
bun add next-line
```

## 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.1.0 |
| Published | 2015-08-31 |
| First published | 2015-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Thomas Watson Steen |
| Maintainers | watson |
| Keywords | line, lines, string, str, crlf, iterate, iterator, loop, next |

## Links

- npm: https://www.npmjs.com/package/next-line
- Repository: https://github.com/watson/next-line
- Homepage: https://github.com/watson/next-line#readme
- Issues: https://github.com/watson/next-line/issues
- npm.io page: https://npm.io/package/next-line

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2015-08-31
- 1.0.0 — 2015-08-31

## README

# next-line

Iterator over lines in a string:

- Support different newline types: CRLF, LF, CR
- Support mixed newline formats in the same string

[![Build status](https://travis-ci.org/watson/next-line.svg?branch=master)](https://travis-ci.org/watson/next-line)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

## Installation

```
npm install next-line
```

## Usage

```js
var next = require('next-line')('foo\r\nbar\nbaz')

console.log(next()) // => foo
console.log(next()) // => bar
console.log(next()) // => baz
console.log(next()) // => null
```

## License

MIT

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