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

node-levenshtein

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-levenshtein - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

2

package.json
{
"name": "node-levenshtein",
"version": "3.0.2",
"version": "3.0.3",
"description": "Fastest Levenshtein distance implementation in JS.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,5 +17,7 @@ # node-levenshtein :rocket:

// Print edit-distance between 'fast' and 'faster'
console.log(levenshtein.compare('fast', 'faster'))
//=> 4
//=> 2
// Print string from array with lowest edit-distance to 'fast'
console.log(levenshtein.find('fast', ['slow', 'faster', 'fastest']))

@@ -22,0 +24,0 @@ //=> 'faster'

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