const result = fuse.search("foo");
^
TypeError: fuse.search is not a function
at Object.<anonymous> (/Users/xcy/src/pkgs/x.js:4:21)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:4
I initially tried require("fuse") which does not provide the Fuse class.
I want to use this library in node.js. I have installed it via
npm i fuse
. However, this does not workI initially tried
require("fuse")
which does not provide the Fuse class.