tokenized-search
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i tokenized-search

Weekly Downloads

26

Version

2.0.1

License

ISC

Unpacked Size

26.2 kB

Total Files

23

Last publish

Collaborators

  • inca