miguelmota / Knuth Morris Pratt
Licence: mit
Knuth-Morris-Pratt string searching algorithm in Javascript.
Programming Languages
javascript
184084 projects - #8 most used programming language
kmp
Knuth-Morris-Pratt string searching algorithm in Javascript.
Install
npm install kmp
bower install kmp
Usage
var kmp = require('kmp');
console.log(kmp('she sells seashells by the seashore', 'shell')); // 13
console.log(kmp('she sells seashells by the seashore', 'seaweed')); // -1
Test
npm test
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].