string-searching
Advanced tools
+1
-1
| { | ||
| "name": "string-searching", | ||
| "version": "0.1.3", | ||
| "version": "0.1.4", | ||
| "description": "Fast string searching algorithms.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+4
-4
@@ -15,3 +15,3 @@ # string-searching [](https://travis-ci.org/nonoroazoro/string-searching) | ||
| ```js | ||
| stringSearching.boyer_moore(text, pattern[, recursive]) | ||
| .boyer_moore(text, pattern[, recursive]) | ||
| ``` | ||
@@ -21,3 +21,3 @@ | ||
| ```js | ||
| const stringSearching = require("string-searching"); | ||
| const ss = require("string-searching"); | ||
| const text = "HERE IS A SIMPLE EXAMPLE"; | ||
@@ -27,6 +27,6 @@ const pattern = "EXAMPLE"; | ||
| // search first index of pattern (like the String.prototype.indexOf() do). | ||
| const index = stringSearching.boyer_moore(text, pattern); | ||
| const index = ss.boyer_moore(text, pattern); | ||
| // or passing true to search all patterns. | ||
| const indexes = stringSearching.boyer_moore(text, pattern, true); | ||
| const indexes = ss.boyer_moore(text, pattern, true); | ||
| ``` |
26507
-0.2%