Neutrinos Peludos Magnéticos
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    kmppublic

    kmp

    Knuth-Morris-Pratt string searching algorithm in Javascript.

    NPM

    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

    install

    npm i kmp

    Downloadsweekly downloads

    7

    version

    0.0.3

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar