sev-indexOf It returns the index value appears in the n-th Installation $ npm install sev-indexof Example var sevIndexOf = require('sev-indexof'); var str = 'hoge hoge fuga hoge'; console.log(sevIndexOf(str, 'hoge', 2); // 5 License MIT