Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Do fuzzy matching using FZF algorithm in JavaScript

License

NotificationsYou must be signed in to change notification settings

ajitid/fzf-for-js

Repository files navigation

TestsDocs deployment status

Docs ·Demo ·GitHub ·NPM

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.

Quick look

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.

Motivation

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.

Thanks


[8]ページ先頭

©2009-2025 Movatter.jp