efuzz
is an in-memory fuzzy search library for Node.js (TypeScript). It provides a clean and intuitive API for implementing fuzzy searching over datasets.
- In-Memory Efficiency: No external databases or storage dependencies.
- Customizable Matching: Define your own thresholds and search algorithms.
- TypeScript Support: Fully typed API for better developer experience.
- Custom Scoring Logic: Supply your own scoring function to customize the search results as per your requirements.
npm install efuzz
NOTE: This wont work. The package is not published on npm yet, follow the instructions for local setup.
import { efuzz } from "efuzz";
const search = efuzz(["apple", "application", "orange"]);
const results = search("appl", { threshold: 0.6 });
console.log(results); // ["apple", "application"]
- Node.js >= 16.x
- npm or yarn
- TypeScript
-
Clone the repository:
git clone https://github.com/yourusername/efuzz.git cd efuzz
-
Install dependencies:
npm install
-
Run tests:
npm test
Feel free to open issues or submit PRs for improvements or new features.
MIT