1.0.2 β’ Published 10 months ago
@ervarunsharma/websee v1.0.2
WebSee
WebSee is a blazingly fast NPM package designed for real-time filtering and searching with advanced features like pattern matching, fuzzy searching, and customizable options. Itβs perfect for applications that require efficient data lookup with user-friendly configurations.
Features
- π Fuzzy Searching: Match patterns even when the input isn't an exact match.
- β‘ Multiple Algorithms: Choose between different algorithms for optimal performance.
- π¨ Customizable Options: Add titles, descriptions, web links, and image links to your results.
- π Easy Integration: Simple setup for both small datasets and large-scale applications.
Installation
Install WebSee via NPM:
npm i @ervarunsharma/webseeUsage
To use WebSee, simply import it in your project and use it to search for data.
import { websee } from "../index.js";
const data = [
"foobar",
"foo-bar",
"test",
"Fuzzy Finder",
"Fuzzy-Finder",
"FuzzyFinder",
"fuzzyfinder",
"fuzzy-finder",
"maker",
"sinderfinder",
"funder-sfinder",
"fuzzy finder",
"foo bar",
"funder sfinder",
""
]
const pattern = "furf"
const option = {
algo: "v1", // "v1" or "v2"
title: true, // default true
desc: false, // default false
weblink: "www.domain.com/url", // www.domain.com/url
imglink: "www.cloudimage.com/url/make", // www.cloudimage.com/url/make
}
console.log(websee(data, pattern, option))Github Contribution
git clone https://github.com/VarunSharma3520/websee.git