Skip to content

AdiPat/efuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eFuzz 🔎

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.

Features

  • 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.

Installation

npm install efuzz

NOTE: This wont work. The package is not published on npm yet, follow the instructions for local setup.

Usage

import { efuzz } from "efuzz";

const search = efuzz(["apple", "application", "orange"]);
const results = search("appl", { threshold: 0.6 });
console.log(results); // ["apple", "application"]

Development

Prerequisites

  • Node.js >= 16.x
  • npm or yarn
  • TypeScript

Setup

  1. Clone the repository:

    git clone https://github.com/yourusername/efuzz.git
    cd efuzz
  2. Install dependencies:

    npm install
  3. Run tests:

    npm test

Contributing

Feel free to open issues or submit PRs for improvements or new features.

License

MIT

About

Super easy fuzzy search library for TypeScript! 🧵

Resources

License

Stars

Watchers

Forks

Packages

No packages published