3.0.0 • Published 7 years ago

sublime-like-fuzzy v3.0.0

Weekly downloads
25
License
SEE LICENSE IN LI...
Repository
-
Last release
7 years ago

A packaged, syncronous form of Forrest Smith's reverse engineered Sublime Text fuzzy search.

This variant excludes use of performance and inline async flow. Use workers for large data sets.

Usage

const fuzz = require('sublime-like-fuzzy');

for (const [score, match, formattedMatch] of fuzz(needle, haystack)) {
	// score is the relative score of the match.
	// matches is sorted by score, descending.

	// match is the particular string in the haystack
	// matching the needle text.

	// formattedMatch is the match except the highest scoring
	// letter sequence are enclosed in <b> and </b>.
}
3.0.0

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago