fuzzy 0.3.0 icon indicating copy to clipboard operation
fuzzy: ^0.3.0 copied to clipboard

Fuzzy search in Dart. initially translated from Fuse.js.

Fuzzy

Pub Package CI

Fuzzy search in Dart.

This project is basically a code conversion, subset of Fuse.js.

Installation #

add the following to your pubspec.yaml file:

dependencies:
  fuzzy: <1.0.0

then run:

pub get

or with flutter:

flutter packages get

Usage #

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!

71
likes
100
pub points
92%
popularity

Publisher

verified publisher iconborges.dev

Fuzzy search in Dart. initially translated from Fuse.js.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

latinize, meta

More

Packages that depend on fuzzy