PHP 8.2.30
Preview: README.md Size: 533 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/lines-and-columns/README.md

# lines-and-columns

Maps lines and columns to character offsets and back. This is useful for parsers
and other text processors that deal in character ranges but process text with
meaningful lines and columns.

## Install

```
$ npm install [--save] lines-and-columns
```

## Usage

```js
import { LinesAndColumns } from 'lines-and-columns'

const lines = new LinesAndColumns(
  `table {
  border: 0
}`
)

lines.locationForIndex(9)
// { line: 1, column: 1 }

lines.indexForLocation({ line: 1, column: 2 })
// 10
```

## License

MIT

Directory Contents

Dirs: 1 × Files: 3

Name Size Perms Modified Actions
build DIR
- drwxr-xr-x 2026-02-28 00:27:12
Edit Download
1.05 KB lrw-r--r-- 2026-02-28 00:26:32
Edit Download
1.34 KB lrw-r--r-- 2026-02-28 00:26:54
Edit Download
533 B lrw-r--r-- 2026-02-28 00:27:04
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).