Skip to main content

flutter_d3_dsv_port 0.1.0 copy "flutter_d3_dsv_port: ^0.1.0" to clipboard
flutter_d3_dsv_port: ^0.1.0 copied to clipboard

Native Dart CSV, TSV and delimiter-separated value parsing and formatting, with generic row conversion and typed automatic value inference. Ports d3-dsv 3.0.1.

example/main.dart

// Original code, not ported from d3-dsv: typed parsing example.
// ignore_for_file: avoid_print
import 'package:flutter_d3_dsv_port/d3_dsv.dart';

void main() {
  final people = csvParseAs(
    'name,age\nAda,36',
    (row, index, columns) => (name: row['name']!, age: int.parse(row['age']!)),
  );
  print(people.first);
  print(csvFormat(csvParse('name,age\nAda,36')));
}
0
likes
160
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Native Dart CSV, TSV and delimiter-separated value parsing and formatting, with generic row conversion and typed automatic value inference. Ports d3-dsv 3.0.1.

Repository (GitHub)
View/report issues
Contributing

Topics

#d3 #csv #tsv #parsing #serialization

License

BSD-2-Clause, ISC (license)

More

Packages that depend on flutter_d3_dsv_port