PackageTrack
Sign in Get early access

csv

A high-quality CSV library. Encode and decode CSV strings, with stream support (one row per event), auto-detection, and Excel compatibility. The string must be comma (configurable) separated values.

8.0.0 826K downloads/mo #400 most downloaded on pub.dev close2/csv

What this package is like to depend on

Last release 5 months ago

19 Mar 2026

Release timing varies

gaps range from 9 days to 2.0 years

Most releases are documented

notes for 14 of 22 stable releases

Nothing withdrawn

no release was ever pulled

12 years old

23 releases · first in 2014

4 releases in the last 12 months

see the full history below

Release timeline

23 releases · Oct 2014 to Mar 2026
2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 23
  1. 8.0.0 19 Mar 2026
    Release notes

    Fix stream nesting issue (#77): stream.transform(csv.decoder).toList() now correctly returns List<List<dynamic>> instead of List<List<List<dynamic>>>.

    Breaking changes:

    • CsvCodec has been renamed to Csv. A deprecated CsvCodec typedef is provided for migration.
    • Csv does not extend dart:convert's Codec. Use asCodec() if you need a Codec (e.g., for .fuse()).
    • CsvDecoder is now a StreamTransformerBase<String, List<dynamic>> instead of a Converter<String, List<List<dynamic>>>. Each stream event is a single row.
    • CsvEncoder is now a StreamTransformerBase<List<dynamic>, String> instead of a Converter<List<List<dynamic>>, String>. Each stream event is a single row.
    • csv.decoder.fuse(...) → use csv.asCodec().decoder.fuse(...) instead.

    See the "The Codec Problem" section in the README for a detailed explanation.

    Open source →
  2. 7.2.0 03 Mar 2026
    Release notes

    Document CsvRow map-like access and necessary casts. Add decodeWithHeaders() helper function.

    Open source →
  3. 7.1.0 10 Feb 2026
    Release notes

    Implement dynamic typing for CSV.

    Open source →
  4. 7.0.0 10 Feb 2026
    Release notes

    Complete rewrite of the library, now compatible with dart:convert. Automatic delimiter detection and BOM support. Optimized for performance and memory usage. If you need compatibility with the older API, please continue using version 6.

    Open source →
  5. 6.0.0 26 Feb 2024
    Release notes

    If inside an unquoted string, text-delimiters are ignored instead of swallowed.
    This (partially?) fixes issue #70.
    Example: "A B", "C, D" will now produce [["A B",' "C',' D"']] instead of [["A B",' C',' D']].

    Open source →
  6. 5.1.1 26 Oct 2023
    Release notes

    Fix warnings. (Thanks https://github.com/thumbert for the bug report)

    Open source →
  7. 5.1.0 17 Oct 2023
    Release notes

    Implement feature request #29. It is now possible to specify a value for empty fields (CSV to List) and a value for null (List to CSV).

    Open source →
  8. 5.0.2 24 Apr 2023
    Release notes

    fix bug #61 "Unexpected Error: The text end delimiter (") for the last field is missing."
    thanks https://github.com/liam7800

    Improve nullsafety code.

    Open source →
  9. 5.0.1 18 Nov 2021
    Release notes

    fix bug #26 "A value of type 'dynamic' can't be assigned to a variable of type 'String'."
    thanks https://github.com/lil5

    Open source →
  10. 5.0.0 16 Mar 2021
    Release notes

    nullsafety updating dependencies to released nullsafety version Removing unnecessary const and new keywords

    Thanks to: https://github.com/arnaudelub

    Open source →
  11. 5.0.0-nullsafety.0 01 Feb 2021 pre-release
    Release notes

    nullsafety
    Thanks to: https://github.com/darwingr

    Open source →
  12. 4.1.0 31 Oct 2020
    Release notes

    Add returnString option to work around a major performance bug.
    Thanks: @boukeversteegh

    Open source →
  13. 4.0.3 05 Apr 2019
    Release notes

    Remove codec documentation in README

    Open source →
  14. 4.0.2 09 Mar 2019
    Release notes

    Fix analysis errors. No new functionality. No bug fix.

    Open source →
  15. 4.0.1 17 Nov 2018
    Release notes

    update dependencies for dart sdk 2.1

    Open source →
  16. 4.0.0 03 Jul 2018

    Nothing published for this version

  17. 3.3.0 03 Jul 2018

    Nothing published for this version

  18. 3.2.0 26 Jun 2018

    Nothing published for this version

  19. 3.1.2 15 Feb 2017

    Nothing published for this version

  20. 3.1.1 15 Jun 2016

    Nothing published for this version

  21. 3.0.1 01 Feb 2016

    Nothing published for this version

  22. 2.0.1 05 Oct 2014

    Nothing published for this version

  23. 2.0.0 05 Oct 2014

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive