Metadata-Version: 2.4
Name: jsonl-cat
Version: 0.1.0
Summary: Pretty-print JSON Lines files and report invalid lines
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# jsonl-cat

A zero-dependency command-line tool that pretty-prints JSON Lines (JSONL) files and reports invalid lines clearly.

## Install

`python -m pip install .`

## Usage

```
jsonl-cat data.jsonl
cat data.jsonl | jsonl-cat   # no file argument: read from stdin
```

`data.jsonl`:

```
{"a": 1}
{"a": 2}
not valid json
```

Output:

```
{
  "a": 1
}

{
  "a": 2
}

line 3: invalid JSON: Expecting value: line 1 column 1 (char 0)
```

Exit code: `0` when every line is valid, `1` otherwise. Empty lines are skipped. `--compact` prints single-line records.
