extract-search-index
TypeScript icon, indicating that this package has built-in type declarations

2.0.23 • Public • Published

extract-search-index

Extract unique keyword input list string for search

page on codsen.com page on npm page on github Downloads per month changelog MIT Licence

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&nbsp;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.

ok codsen star

Package Sidebar

Install

npm i extract-search-index

Weekly Downloads

20

Version

2.0.23

License

MIT

Unpacked Size

237 kB

Total Files

7

Last publish

Collaborators

  • royston