csv2json 0.0.3 csv2json: ^0.0.3 copied to clipboard
csv2json is a versatile Dart package designed to simplify the conversion of Comma-Separated Values (CSV) data to JavaScript Object Notation (JSON) format.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add csv2json
With Flutter:
$ flutter pub add csv2json
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
csv2json: ^0.0.3
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:csv2json/csv2json.dart';