JavaScript library for Node.js that calculates the Damerau Levenshtein distance between two strings. It returns an object with the edit steps, a relative value based on the longer string length, and a derived similarity score useful for string comparison and fuzzy matching.
Project status
- Maintenance status: The npm/package updates appear to be largely maintenance-light, with the newest published update being v1.0.8 on 2021-12-20. Although the GitHub upstream has a push in 2024-07-19, there is no evidence in the provided release summaries that those changes resulted in newer published updates.
- Update cadence: After the initial development period (2016 to 2017), updates become infrequent, with multi-year gaps between versions, and a long quiet stretch relative to today (2026-06-09) since the last published update in 2021.
AI summary generated
Recent updates
v1.0.8
v1.0.8 primarily updates developer tooling, including a security-motivated upgrade of the dev dependency Mocha. The library runtime code is not shown changing in the provided diff, and README examples were corrected for a misspelled import usage. The largest churn is in package-lock.json due to dependency tree upgrades.
Securityv1.0.7
No publisher release notes were provided for v1.0.7. The actual diff shows a package version bump, a change to the maintainer script scripts/update-changelog.sh, and updates to transitive development dependencies in package-lock.json (notably lodash and y18n).
v1.0.6
Release v1.0.6 was published on 2020-01-27. No release notes were provided, so there is no information available about new features, bug fixes, breaking changes, security updates, or migration steps for developers.
v1.0.5
Release v1.0.5 mainly updates development tooling and documentation. The diff shows a Mocha devDependency upgrade, README examples for ES modules and TypeScript, and new repo maintenance automation (update-changelog script) plus addition of LICENSE and package-lock.json. No runtime/library source changes are present in the provided diff, so the published function API is not shown to change.
v1.0.4
v1.0.4 makes a small code change to ensure the Damerau-Levenshtein implementation works under JavaScript strict mode. The diff also updates the test script to run Mocha with strict mode enabled.
v1.0.3
This release is a metadata-only update. It bumps the npm package version to 1.0.3 and enriches package.json and CHANGELOG.md with contributor, repository, and bug tracker information.
v1.0.2
v1.0.2 updates the Damerau-Levenshtein module to add and correctly compute additional metrics (relative and similarity) alongside the edit distance steps. The release notes do not include any documented changes, but the code and tests show behavior changes around how the result object is constructed, especially for empty-string inputs.
BreakingFeaturesv1.0.1
This release updates the Damerau-Levenshtein implementation to fix incorrect results for a transposition case, and introduces an initial Mocha test suite. The repository release notes themselves were not provided, so the CHANGELOG.md file added in this diff is effectively the only documentation of what changed.
Featuresv1.0.0
Release v1.0.0 (published 2016-02-25) has no release notes provided by the publisher. As a result, there is no documented information about new features, fixes, or breaking changes in this release.