text-stream-search
Version:
Searches for occurrences of a given search term in Node.js text streams
14 lines • 333 B
JavaScript
/**
* SearchList contains all current searches.
*/
export class SearchList extends Array {
/**
* Scan runs all active searches against the stream text that has accumulated so far.
*/
scan() {
for (const search of this) {
search.scan();
}
}
}
//# sourceMappingURL=search-list.js.map