extract-search-index
v2.0.23
Published
Extract unique keyword input list string for search
Downloads
168
Maintainers
Readme
Install
This package is pure ESM.
npm i extract-search-index
Quick Take
import { strict as assert } from "assert";
import { extract } from "extract-search-index";
assert.equal(
extract("The quick brown fox jumps over the lazy dog."),
"quick brown fox jumps over lazy dog",
);
// works with HTML, strips tags
assert.equal(extract("<tralala><div>some text</div>"), "some text");
Documentation
Please visit codsen.com for a full description of the API.
Contributing
To report bugs or request features or assistance, raise an issue on GitHub.
Licence
MIT License.
Copyright © 2010-2024 Roy Revelt and other contributors.