Latest stable version: Installation7.0.0
npm install fuse.js
yarn add fuse.js
ES6 module syntax:
import Fuse from 'fuse.js'
const Fuse = require('fuse.js')
Simply download and include with a script tag.
Fuse will be registered as a global variable.
For prototyping or learning purposes, you can use the latest version with:
For production, we recommend linking to a specific version number and build to avoid unexpected breakage from newer versions:
If you are using native ES Modules, there is also an ES Modules compatible build:
<script type="module"> import Fuse from 'https://firstname.lastname@example.org/dist/fuse.mjs' </script>
You can browse the source of the npm package at cdn.jsdelivr.net/npm/fuse.js.
Fuse.js is also available on unpkg.
Make sure to read about the different builds of Fuse.js and use the production version in your published site, replacing
fuse.min.js. This is a smaller build optimized for speed instead of development experience.
You can directly import
Fuse as an ES module from the deno.land/x service:
// @deno-types="https://email@example.com/dist/fuse.d.ts" import Fuse from 'https://firstname.lastname@example.org/dist/fuse.min.mjs'