\begin{quote}
Measure the difference between two strings~\newline
 One of the fastest JS implementations of the \href{https://en.wikipedia.org/wiki/Levenshtein_distance}{\texttt{ Levenshtein distance}} algorithm \end{quote}
\hypertarget{md_sfcode_node_modules_leven_readme_autotoc_md15994}{}\doxysection{Install}\label{md_sfcode_node_modules_leven_readme_autotoc_md15994}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install leven }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_leven_readme_autotoc_md15995}{}\doxysection{Usage}\label{md_sfcode_node_modules_leven_readme_autotoc_md15995}

\begin{DoxyCode}{0}
\DoxyCodeLine{const leven = require('leven');}
\DoxyCodeLine{}
\DoxyCodeLine{leven('cat', 'cow');}
\DoxyCodeLine{//=> 2 }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_leven_readme_autotoc_md15996}{}\doxysection{Benchmark}\label{md_sfcode_node_modules_leven_readme_autotoc_md15996}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm run bench }

\end{DoxyCode}



\begin{DoxyCode}{0}
\DoxyCodeLine{165,926 op/s » leven}
\DoxyCodeLine{164,398 op/s » talisman}
\DoxyCodeLine{  1,044 op/s » levenshtein-\/edit-\/distance}
\DoxyCodeLine{    628 op/s » fast-\/levenshtein}
\DoxyCodeLine{    497 op/s » levenshtein-\/component}
\DoxyCodeLine{    195 op/s » ld}
\DoxyCodeLine{    190 op/s » levenshtein}
\DoxyCodeLine{    168 op/s » levdist}
\DoxyCodeLine{     10 op/s » natural }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_leven_readme_autotoc_md15997}{}\doxysection{Related}\label{md_sfcode_node_modules_leven_readme_autotoc_md15997}

\begin{DoxyItemize}
\item \href{https://github.com/sindresorhus/leven-cli}{\texttt{ leven-\/cli}} -\/ CLI for this module
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_leven_readme_autotoc_md15998}{}\doxysection{License}\label{md_sfcode_node_modules_leven_readme_autotoc_md15998}
MIT © \href{https://sindresorhus.com}{\texttt{ Sindre Sorhus}} 