- Notifications
You must be signed in to change notification settings - Fork22
Do fuzzy matching using FZF algorithm in JavaScript
License
ajitid/fzf-for-js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Originally available asa fuzzy finder for CLIs, FZF for JavaScript is a port of FZF's main algorithm so it can be used in browser context.
Install FZF for JavaScript using:
npm i fzf
Then you can use it like:
import{Fzf}from'fzf'constlist=['go','javascript','python','rust','swift','kotlin','elixir','java','lisp','v','zig','nim','rescript','d','haskell']constfzf=newFzf(list)constentries=fzf.find('li')console.log('ranking is:')entries.forEach(entry=>console.log(entry.item))// lisp kotlin elixir
For more ways to use this library,visit documentation.
Command palette is becoming ubiquitous – you can find it in code editors (Sublime Text, VS Code), design tools (Figma), project management apps (Height,Linear), source control tools (Fork, Sublime Merge). Web apps are becoming more prevalent as well. FZF has a great fuzzy finding mechanism which could be used outside of CLI and into these palettes.
There isa very good read about command palettes if you want to learn more.
- Junegunn Choi (author of FZF,website) – for making his work available and accessible to us. You cansponsor his project.
About
Do fuzzy matching using FZF algorithm in JavaScript