serial_csv 0.4.0 copy "serial_csv: ^0.4.0" to clipboard
serial_csv: ^0.4.0 copied to clipboard

High performance CSV encoder and decoder with retained types and nullability.

example/serial_csv_example.dart

import 'package:serial_csv/serial_csv.dart';

void main() {
  const csv = '"a","b","c"\n1,2.3,"3"\n4,,true\n';
  List<List<dynamic>> decoded = SerialCsv.decode(csv);
  String encoded = SerialCsv.encode(decoded);

  for (int row = 0; row < decoded.length; row++) {
    for (int col = 0; col < decoded[row].length; col++) {
      print('decoded[$row][$col]: ${decoded[row][col]} (${decoded[row][col].runtimeType})');
    }
  }

  print('encoded:');
  print(encoded);
}
3
likes
160
points
56
downloads

Publisher

verified publishertienisto.com

Weekly Downloads

High performance CSV encoder and decoder with retained types and nullability.

Repository (GitHub)
View/report issues

Topics

#csv #serialization #deserialization #encode #decode

Documentation

API reference

License

MIT (license)

More

Packages that depend on serial_csv