Testing Blogging Page

did is a library for matching human-quality input to a list of potential matches using the Levenshtein distance algorithm.
It is inspired by did.

Very Long Long Long Long Long Long Long Long Long Long Long

  1. Based on LEVEN, the fastest JS implementation of the Levenshtein distance algorithm

  2. ~100% faster than did

  3. Well tested with 100% coverage

  4. Static type checking with TypeScript

  5. More control on what kind of matches you want to return

  6. Support matching object's path instead of just key

Installation

npm install didyoumean2
const didYouMean = require('didyoumean2').default
// or if you are using TypeScript or ES module
import didYouMean from 'didyoumean2'

// you can also access to Enums via:
const {
  default: didYouMean,
  ReturnTypeEnums,
  ThresholdTypeEnums,
} = require('didyoumean2')
// or
import didYouMean, { ReturnTypeEnums, ThresholdTypeEnums } from 'didyoumean2'

const a = async () => {
  return <div {...span} />
}

export function* gen() {}

Usage

didYouMean(input, matchList[, options])

Test

Before all:

npm install -g yarn
yarn install

Unit test and coverage:

yarn test

Linter:

yarn lint