Skip to content

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.

node

npm test

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

python

pytest

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

docker

docker compose

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

k8s

Kubernetes

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

ci

Jenkins

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:

<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 for every flag.