# text-line-array

> text line array

Latest version **1.0.4** (published 2021-12-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install text-line-array
pnpm add text-line-array
yarn add text-line-array
bun add text-line-array
```

## 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.4 |
| Published | 2021-12-22 |
| First published | 2021-12-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | fwg |
| Maintainers | adf0001 |
| Keywords | text, line, array |

## Links

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

## 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.4 (latest) — 2021-12-22
- 1.0.3 — 2021-12-20
- 1.0.2 — 2021-12-19
- 1.0.1 — 2021-12-19
- 1.0.0 — 2021-12-18

## README

# text-line-array
text line array

# Install
```
npm install text-line-array
```

# Usage & Api
```javascript

text_line_array = require("text-line-array");

//TextLineArrayClass( [lineArray] [, options] )
//options: { maxLineNumber=255, lineCallback } | maxLineNumber | lineCallback
var tla = text_line_array();

//.addText: function (text [, linePrefix] )
tla.add("a");
tla.add("b\nc");
tla.add("d\n");
tla.add("\ne\n");
tla.add("e2");
tla.add("f", "p1:");
tla.add("g\nh", "p1:");
tla.add("i\nj", "p2:");
tla.add("k");
tla.add("k2");
//.addLine: function (textArray [, linePrefix] )
tla.addLine(["k3", "k4"]);
tla.add("k5");
tla.addLine(["k6", ""]);
tla.add("k7");
tla.addLine("k8");

console.log(tla.lineArray);

/*
	tla.lineArray.join("\n") === [
		"ab",
		"cd",
		"",
		"e",
		"e2",
		"p1:fg",
		"p1:h",
		"p2:i",
		"p2:j",
		"kk2",
		"k3",
		"k4k5",
		"k6",
		"k7",
		"k8",
	].join("\n")
*/

```

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