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

fast-levenshtein-string

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-levenshtein-string

Implementation of the Levenshtein algorithm used to calculate distince between strings.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

npm version Build Status GitHub license

levenshtein-js

Implementation of the Levenshtein algorithm used to calculate distince between strings.

Installation

Install using npm:

$ npm install --save fast-levenshtein-string

Usage

var levenshtein = require('fast-levenshtein-string');

levenshtein.compute('niche', 'chiens'); // 5

API

compute(rawWord1: String, rawWord2: String) -> Number

Check requirements.
Returns Levensthein distance between rawWord1 and rawWord2.

Required

  • rawWord1 must be not Null
  • rawWord1 must be of type String
  • rawWord2 must be not Null
  • rawWord2 must be of type String

computeWithtoutCheck(rawWord1: String, rawWord2: String) -> Number

Does NOT check requirements.
Returns Levensthein distance between rawWord1 and rawWord2.

Required

  • rawWord1 must be not Null
  • rawWord1 must be of type String
  • rawWord2 must be not Null
  • rawWord2 must be of type String

Keywords

FAQs

Package last updated on 28 Oct 2019

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