fuzzy 0.5.1 copy "fuzzy: ^0.5.1" to clipboard
fuzzy: ^0.5.1 copied to clipboard

Fuzzy search in Dart. Initially a code conversion, subset of 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!

100
likes
150
points
16.8k
downloads

Publisher

verified publisherborges.dev

Weekly Downloads

Fuzzy search in Dart. Initially a code conversion, subset of Fuse.js.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

stringr

More

Packages that depend on fuzzy