Table of Contents
Fuse.js
Reference
return (async (fn) => {
const { default: Fuse } = await import(
"https://cdn.jsdelivr.net/npm/fuse.js@6.4.6/dist/fuse.esm.js"
);
const manifest = await fetch("/manifest.json").then((res) => res.json());
const fuse = new Fuse(manifest.nodes, {
includeScore: true,
keys: ["title", "id"],
});
// 3. Now search!
return fuse.search("../../..", { limit: 5 });
})();
Implementations
Viewer
Repl
type=prox
Results for search "type=prox". In 0.043 seconds.
-
/index.lit 100
line 30 ```js !plugin type=proxy id=corsProxy !collapse < ./plugins/other/cors-proxy.js
-
/config.lit 100
line 370 ```js !xplugin type=proxy id=corsProxy !collapse < ./plugins/other/cors-proxy.js
-
/testing/isomorphic_git.lit 100
line 337 ```js !plugin type=proxy id=corsProxy !collapse < ../plugins/other/cors-proxy.js
-
/index.lit 67
line 54 .litDigital GardensTools for ThoughtLearning in PublicThinking in PublicKnowledge GraphLiterate ProgrammingRunbooksInteractive NotebooksGuided LearningShow don't TellNo CodeLow CodeMore CodeRapid PrototypingRead Eval Print Loop<!--MD5=[779870beb8e5aaaf03ae1f70915266b5]
-
/config.lit 67
line 115 ```js !plugin type=onload id=sw
-
/config.lit 67
line 135 ```js !xplugin type=transformer of=js !collapse < ../plugins/transformers/prettier.js
-
/config.lit 67
line 432 ```js !xplugin of=uml !collapse #viewer type=repl
-
/config.lit 67
line 524 root nodesome first level nodesecond level nodeanother second level nodeanother first level node<!--MD5=[8c1f1039f1f6300557f480a2340cac76]
-
/testing/isomorphic_git.lit 67
line 444 type="text"
-
/config.lit 56.00000000000001
line 20 ```js !plugin type=theme id=test
FuzzySet
return import('https://cdn.skypack.dev/fuzzyset').then( FuzzySet => {
const f = new FuzzySet.default()
f.add("the text of mine")
f.add("the text of someone else")
f.add("other texts")
return f.get("text of")
})