Skip to content
Fuzzy search in Dart
Dart
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Pass variables via outputs Dec 24, 2019
example Breaking: rename result keys, remove 'key' field Dec 23, 2019
lib Weighted search Dec 23, 2019
test Weighted search Dec 23, 2019
.gitignore Initial commit Dec 19, 2019
CHANGELOG.md Pass variables via outputs Dec 24, 2019
LICENSE Initial commit Dec 19, 2019
README.md 0.1.0: first usable version Dec 22, 2019
analysis_options.yaml Exclude test from linter Dec 22, 2019
pubspec.yaml Pass variables via outputs Dec 24, 2019

README.md

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!

You can’t perform that action at this time.