Skip to content

json-from-llm v0.2.0

Choose a tag to compare

@slegarraga slegarraga released this 05 Jun 17:04
· 21 commits to main since this release
7078f83

json-from-llm 0.2.0

Adds the first CLI release for pipeline-friendly JSON extraction from LLM output.

Highlights

  • json-from-llm binary reads stdin and prints normalized JSON to stdout.
  • --expect object|array|any chooses the top-level JSON type users want.
  • --no-repair supports strict extraction without trailing-comma repair.
  • README now includes copy-paste CLI and npx examples plus exit codes.

Verification

  • npm run typecheck
  • npm test — 26 tests passed
  • npm run lint
  • npm run build
  • npm pack --dry-run
  • npm publish --dry-run
  • Built CLI e2e via node dist/cli.js
  • Packed install e2e via local tarball and npx json-from-llm
  • Published install e2e via npm exec --package json-from-llm@0.2.0 -- json-from-llm

npm: https://www.npmjs.com/package/json-from-llm/v/0.2.0
PR: #11
Issue: #10