Socket
Socket
Sign inDemoInstall

fuzzaldrin-plus

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fuzzaldrin-plus

Fuzzy filtering and string similarity scoring - compatible with fuzzaldrin


Version published
Weekly downloads
122K
decreased by-8.95%
Maintainers
1
Weekly downloads
 
Created

What is fuzzaldrin-plus?

fuzzaldrin-plus is a fast and powerful string matching library that provides fuzzy filtering and scoring. It is commonly used for autocomplete and search functionalities where you need to match user input against a list of possible options.

What are fuzzaldrin-plus's main functionalities?

Filtering

The filtering feature allows you to filter a list of strings based on a query. The results are sorted by relevance.

const fuzzaldrinPlus = require('fuzzaldrin-plus');
const options = ['apple', 'banana', 'grape', 'orange', 'pineapple'];
const results = fuzzaldrinPlus.filter(options, 'ap');
console.log(results); // ['apple', 'grape', 'pineapple']

Scoring

The scoring feature allows you to score a string against a query. Higher scores indicate better matches.

const fuzzaldrinPlus = require('fuzzaldrin-plus');
const score = fuzzaldrinPlus.score('apple', 'ap');
console.log(score); // Higher score indicates better match

Matching

The matching feature returns the positions of the characters in the string that match the query. This is useful for highlighting matched characters.

const fuzzaldrinPlus = require('fuzzaldrin-plus');
const matches = fuzzaldrinPlus.match('apple', 'ap');
console.log(matches); // [0, 1]

Other packages similar to fuzzaldrin-plus

Keywords

FAQs

Package last updated on 20 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc