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

longest-common-subsequence

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

longest-common-subsequence

Get the longest common subsequence of two strings as described in https://en.wikipedia.org/wiki/Longest_common_subsequence_problem

  • 1.0.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
238
decreased by-37.37%
Maintainers
1
Weekly downloads
 
Created
Source

longest-common-subsequence Build Status

Get the longest common subsequence of two strings as described in Wikipedia

Install

$ npm install --save longest-common-subsequence

Usage

const lcs = require('longest-common-subsequence');

lcs('Abc def', 'abc');
//=> 'abc'

lcs('abc def','Abc Def', true); // case sensitive = true
//=> 'bc ef'

Testing

$ npm test

License

MIT © EL AZZABI Ahmed

Keywords

FAQs

Package last updated on 20 Aug 2016

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