1.0.0 • Published 2 years ago

tokenized-search v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Tokenized Search

Fuzzy search an array of strings, prioritizing matches happening at token boundaries.

Note: this library is designed for searching code tokens (i.e. symbols and identifiers in PascalCase, camelCase, kebab-case, snake_case, etc.)

This replicates the functionality implemented by common IDEs and some other solutions (i.e. GitHub) for searching files and symbols, with adding bias towards matching the beginning of the words (called tokens), falling back to regular wildcard matching which yields lower score.

The results are scored based on their relevance to the search query. Token-based matches are given higher priority.

1.0.0

2 years ago

0.3.0

2 years ago

0.2.0

3 years ago

0.1.0

3 years ago