# line-source

> It returns a source for a line of text.

Latest version **0.2.7** (published 2016-04-10) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.7 |
| Published | 2016-04-10 |
| First published | 2015-10-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | sterpe |
| Maintainers | sterpe |

## Links

- npm: https://www.npmjs.com/package/line-source
- Repository: https://github.com/sterpe/line-source
- Issues: https://github.com/sterpe/line-source/issues
- npm.io page: https://npm.io/package/line-source

## Dependencies (1)

- [string-source](https://npm.io/package/string-source.md) ^0.1.1

## Recent versions

- 0.2.7 (latest) — 2016-04-10
- 0.2.6 — 2016-03-07
- 0.2.5 — 2016-03-05
- 0.2.4 — 2016-03-05
- 0.2.3 — 2016-03-05
- 0.2.1 — 2016-03-05
- 0.2.0 — 2015-10-29
- 0.1.2 — 2015-10-28
- 0.1.1 — 2015-10-28
- 0.1.0 — 2015-10-28

## README

# line-source

[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)

## What is it?

It returns a source for a line of text.

```javascript
const LineSource = require('line-source')

const l = new LineSource('foo bar quux')

l.currentChar // => 'f'
l.position // => 1
l.peekChar() // => 'o'
l.nextChar() // => 'o'

// All methods and properties return `null' once the 
// currentChar has moved past the end of the source
// string.
//
// An error is thrown if the input string contains
// unescaped newline characters (`\n`).
```

## How do I work on it?

### development
```
git clone https://github.com/sterpe/line-source.git
cd line-source
make
```

### build
```
make build
```
### test
```
make JEST_FLAGS=--coverage test
```

### lint
```
make lint
```

Consult the [`Makefile`](Makefile) for further details.

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