https://github.com/comigor/fuzzy
Fuzzy search in Dart
https://github.com/comigor/fuzzy
Last synced: about 1 year ago
JSON representation
Fuzzy search in Dart
- Host: GitHub
- URL: https://github.com/comigor/fuzzy
- Owner: comigor
- License: mit
- Created: 2019-12-19T20:58:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T00:36:30.000Z (over 2 years ago)
- Last Synced: 2025-04-23T20:12:40.689Z (about 1 year ago)
- Language: Dart
- Size: 143 KB
- Stars: 37
- Watchers: 2
- Forks: 20
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Fuzzy
[](https://pub.dartlang.org/packages/fuzzy)
[](https://github.com/comigor/fuzzy/actions?query=workflow%3ACI)
Fuzzy search in Dart.
This project is basically a code conversion, subset of [Fuse.js](https://github.com/krisk/Fuse).
## Installation
add the following to your `pubspec.yaml` file:
```shell
dependencies:
fuzzy: <1.0.0
```
then run:
```shell
pub get
```
or with flutter:
```shell
flutter packages get
```
## Usage
```dart
import 'package:fuzzy/fuzzy.dart';
void main() {
final fuse = Fuzzy(['apple', 'banana', 'orange']);
final result = fuse.search('ran');
result.map((r) => r.output.first.value).forEach(print);
}
```
Don't forget to take a look at [FuzzyOptions](https://pub.dev/documentation/fuzzy/latest/data_fuzzy_options/FuzzyOptions-class.html)!