word_collection_utils 0.1.2 copy "word_collection_utils: ^0.1.2" to clipboard
word_collection_utils: ^0.1.2 copied to clipboard

A Dart library designed to simplify the processing of CSV files and provide utility functions for word collection management.

example/word_collection_utils_example.dart

import 'dart:io';

import 'package:word_collection_utils/src/utils/word_collection_utils.dart';

Future<void> main() async {
  String currentDirectory = Directory.current.path;
  WordCollectionUtils wordCollectionUtils = WordCollectionUtils(
    collectionPath: '$currentDirectory/example/collection.csv',
  );

  print('Random Word: ${(await wordCollectionUtils.getRandomWord()).value}');
  print('Word at Index 0: ${(await wordCollectionUtils.getWord(0)).value}');
  print(
    'Words from Index 0 to 5: ${(await wordCollectionUtils.getWordsByRangeIndex(0, 5)).map((w) => w.value).toList()}',
  );
}
1
likes
160
points
3
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart library designed to simplify the processing of CSV files and provide utility functions for word collection management.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

mocktail, path

More

Packages that depend on word_collection_utils