csv_plus
1.13.1, released 8 days ago by almasum.dev
Fast, zero-dependency CSV parser, encoder, streamer, and query engine for Dart.
What it does
Decodes and encodes RFC 4180 CSV, TSV, and custom-delimited data with automatic type inference, chunked streaming, and schema validation. Provides a CsvTable layer for filtering, sorting, grouping, and aggregating tabular data.
AI-written summary of version 1.13.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to parse, stream, or write CSV files efficiently in Dart or Flutter
- You want automatic type inference for numbers, booleans, and dates without external dependencies
- You need to query, transform, and validate tabular CSV data using a DataFrame-style API
Skip it when
- You are working with full Microsoft Excel (.xlsx) spreadsheet files rather than plain text CSV
- You require built-in localized month names for date parsing in languages other than English
Strengths
- Zero dependencies and pure Dart implementation supporting all platforms
- High performance with constant-memory streaming for large files
- Rich feature set including schema validation, type inference, and table querying operations
Weaknesses
- Does not include built-in localized month names for date parsing outside of English without manual configuration
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
final codec = CsvCodec();
final csv = codec.encode([
['name', 'age', 'score'],
['Alice', 30, 95.5],
['Bob', 25, 88.0],
]);
final rows = codec.decode(csv);Alternatives
Packages that do the same job and could replace csv_plus.
- asn1lib
Encodes and decodes ASN.1 objects using BER byte encoding in Dart.
85Compare - yaml
A Dart library for parsing YAML documents into Dart data structures.
92Compare - qs_dart
A query string encoding and decoding library for Dart ported from JavaScript's qs.
77Compare - serial_csv
High-performance CSV encoder/decoder preserving types and nullability
70Compare
Works with
Packages commonly used together with csv_plus: ones it builds on, ones built on it, and its own family.