Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fast-fuzzy

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-fuzzy

Fast and tiny fuzzy-search utility

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
75K
decreased by-20.42%
Maintainers
1
Weekly downloads
 
Created
Source

fast-fuzzy

Fast fuzzy search utility

methodology

fast-fuzzy is an on-line fuzzy searching utility that is pretty fast for moderate sized lists of candidates. The ranking algorithm is a modification of levenshtein distance proposed by Peter H. Sellers (paper).

Inputs are normalized by taking the lowercase of a string, removing non-word characters, reducing all whitespace to single spaces, and trimming off any leading or trailing whitespace.

exports

  • fuzzy - the core fuzzy search ranking function. returns a number between 0 and 1, with 1 being perfect match and 0 being perfect mismatch.
  • search - search function for one-off searches. returns a filtered and sorted copy of the original array.
  • Searcher - a class for searching the same set of candidates multiple times. caches normalization and key selection.

Keywords

FAQs

Package last updated on 03 Apr 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