node-lcs

1.0.4 • Public • Published

node-lcs

npm GitHub Workflows Coverage Status

Common dynamic programming implementations for the Longest Common Substring algorithm runs in O(nm) time. Reference implementation at WikiBooks

Installation

Add the latest version of node-lcs to your package.json:

npm install node-lcs

Usage

var lcs = require('node-lcs')

var result = lcs('Longest common substring', 'Compare with this common string')
console.log(result)
{ length: 9, sequence: ' common s', offset: 7 }

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    334
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    334
  • 1.0.3
    6
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i node-lcs

Weekly Downloads

342

Version

1.0.4

License

MIT

Unpacked Size

6.26 kB

Total Files

7

Last publish

Collaborators

  • dinhoabreu