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

sublime-like-fuzzy

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sublime-like-fuzzy

Packaged form of reverse-engineered Sublime Text fuzzy search by Forrest Smith

  • 3.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

A packaged, syncronous form of Forrest Smith's reverse engineered Sublime Text fuzzy search.

This variant excludes use of performance and inline async flow. Use workers for large data sets.

Usage

const fuzz = require('sublime-like-fuzzy');

for (const [score, match, formattedMatch] of fuzz(needle, haystack)) {
	// score is the relative score of the match.
	// matches is sorted by score, descending.

	// match is the particular string in the haystack
	// matching the needle text.

	// formattedMatch is the match except the highest scoring
	// letter sequence are enclosed in <b> and </b>.
}

FAQs

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