Skip to content

feat: add getMeta() for parse metadata output - #26

Merged
bytebrujo merged 1 commit into
mainfrom
feature/meta-output
Feb 7, 2026
Merged

bytebrujo merged 1 commit into
mainfrom
feature/meta-output

Conversation

@bytebrujo

Copy link
Copy Markdown
Owner

Summary

  • Adds CSVMeta interface with PapaParse-compatible metadata fields
  • Adds getMeta() method on CSVParser returning: delimiter, linebreak, aborted, truncated, fields, elapsedMs
  • Available before and after iteration
  • fields returns a copy of the header names array (or null without headers)
  • Exported CSVMeta type from package

Test plan

  • Returns correct delimiter (default and custom)
  • Returns linebreak
  • Returns fields array with header names
  • Returns null fields without headers
  • aborted is false by default
  • truncated is false by default
  • elapsedMs is a positive number after parsing
  • fields is a copy, not a reference
  • Meta available before iteration
  • All 38 unit tests pass

Closes #14

🤖 Generated with Claude Code

Add CSVMeta interface and getMeta() method exposing PapaParse-compatible
parse metadata: delimiter, linebreak, aborted, truncated, fields array,
and elapsedMs. Available before and after iteration.

Closes #14

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bytebrujo
bytebrujo force-pushed the feature/meta-output branch from 1d89a6b to e141504 Compare February 7, 2026 05:44
@bytebrujo
bytebrujo merged commit 5a96f69 into main Feb 7, 2026
4 of 5 checks passed
@bytebrujo
bytebrujo deleted the feature/meta-output branch February 7, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add meta output in parse results

1 participant