Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(parsing): add filter and transform callback to parseAsJSONL #38

Merged
merged 1 commit into from
Apr 5, 2021

Conversation

super-bunny
Copy link
Member

export interface OptionsJSONL {
  // Filter unparsed lines (JSON string)
  filter?: (unparsedLine: string) => boolean
  // Transform each parsed item
  transformer?: (item: any) => any
}

@super-bunny super-bunny self-assigned this Apr 5, 2021
Drosaca
Drosaca previously approved these changes Apr 5, 2021
@Drosaca Drosaca merged commit fa00350 into dev Apr 5, 2021
@Drosaca Drosaca deleted the parsing/parseAsJSONL branch April 5, 2021 21:08
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.

None yet

3 participants