# bunyan-log-sort

> Sorts bunyan formatted logs according to their `time` field. This way you can easily concat various bunyan log files and still get the result ordered. Also wraps non bunyan lines into interpolated bunyan logs and attempts to merge bunyan lines that were s

Latest version **1.1.0** (published 2021-06-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install bunyan-log-sort
pnpm add bunyan-log-sort
yarn add bunyan-log-sort
bun add bunyan-log-sort
```

Provides the command `bunyan-sort`.

## 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 | 2021-06-29 |
| First published | 2020-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Peekayy |
| Maintainers | peekayy |

## Links

- npm: https://www.npmjs.com/package/bunyan-log-sort
- Repository: https://github.com/Peekayy/bunyan-log-sort
- Homepage: https://github.com/Peekayy/bunyan-log-sort#readme
- Issues: https://github.com/Peekayy/bunyan-log-sort/issues
- npm.io page: https://npm.io/package/bunyan-log-sort

## Recent versions

- 1.1.0 (latest) — 2021-06-29
- 1.0.0 — 2020-02-02

## README

# bunyan-log-sort

Sorts bunyan formatted logs according to their `time` field. This way you can easily concat various bunyan log files and still get the result ordered.
Also wraps non bunyan lines into interpolated bunyan logs and attempts to merge bunyan lines that were split into multiple lines (by journalctl for instance). 

## Installation

### Using yarn
`yarn global add bunyan-log-sort`

## Usage

option `-r` reverses order (Newest last).

`$ cat your.log | bunyan-sort [-r] | bunyan`

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