# Cookbook

Copy-paste recipes grouped by tool. Every example favours the CLI - it composes
naturally with any CI that can run a shell. The GitHub Action wrapper appears
in the npm-test recipe and is documented in full at
[Reference - GitHub Action](https://mrwogu.github.io/logstrip/reference/action/index.md).

### [npm test](https://mrwogu.github.io/logstrip/examples/npm-test/index.md)

`vitest`, `jest`, `mocha`, `node --test`, npm/yarn/pnpm. Stdin, matrix,
PowerShell, artifact upload, GitHub Action wrapper.

### [pytest](https://mrwogu.github.io/logstrip/examples/pytest/index.md)

Multi-line traceback joining (`-m python`), GitHub Actions, GitLab CI,
tox, pre-push hooks.

### [docker compose](https://mrwogu.github.io/logstrip/examples/docker-compose/index.md)

`docker compose logs`, follow mode with `--timeout`, per-service
compression, on-failure capture in CI.

### [Kubernetes](https://mrwogu.github.io/logstrip/examples/k8s/index.md)

`kubectl logs`, `stern`, previous-container post-mortems, crash-loop
debugging, ArgoCD / GitOps integration.

### [Jenkins](https://mrwogu.github.io/logstrip/examples/jenkins/index.md)

Declarative and scripted pipelines, console-log capture via REST,
multi-branch artifact archiving.

## Don't see your stack?

Every recipe is a thin shell wrapper around the same CLI:

```bash
<your-tool> 2>&1 | npx -y logstrip > clean.log
```

The patterns translate directly to GitLab CI, CircleCI, Buildkite, Drone,
Tekton, Azure Pipelines, AWS CodeBuild, and local pre-commit / pre-push
hooks. See the [CLI reference](https://mrwogu.github.io/logstrip/reference/cli/index.md) for every flag.