Skip to content

neoclide/wasm-fuzzy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wasm-fuzzy

Wasm module for fuzzy match with native performance.

C code mostly form source code of vim in src/search.c.

Build

Requires wasi and optional wabt.

Binary file also provided from release page

Change the SDK part in Makefile.

Run command:

make
node index.js

Result should looks like:

Match fb => fooBar
Matched score & positions 135 Uint32Array(2) [ 0, 3 ]
Match fb => fobbbdefo/Bar
Matched score & positions 114 Uint32Array(2) [ 0, 10 ]
Match fb => foot, No match
Done

LICENSE

MIT