{"_id":"@byndyusoft-ui/highlighter","name":"@byndyusoft-ui/highlighter","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@byndyusoft-ui/highlighter","version":"0.1.0","description":"Byndyusoft UI Highlighter React Component","keywords":["byndyusoft","byndyusoft-ui","react","highlighter"],"author":{"name":"Zhukov Andrey","email":"zhukov@byndyusoft.com"},"homepage":"https://github.com/Byndyusoft/ui/tree/master/components/Highlighter#readme","license":"ISC","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/Byndyusoft/ui.git"},"scripts":{"build":"rollup --config","clean":"rimraf dist","lint":"eslint src --config ../../eslint.config.js","test":"jest --config ../../jest.config.js --roots components/highlighter/src"},"bugs":{"url":"https://github.com/Byndyusoft/ui/issues"},"publishConfig":{"access":"public"},"peerDependencies":{"react":">=17"},"_id":"@byndyusoft-ui/highlighter@0.1.0","gitHead":"44975177f9be40cbefe3dca55a3f9192d7bd17cf","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-j4aUdr+EZMSgPCn+hKRFGo4VTHHzbximBXKMbBvXbCwNBkbJg+thBHTQnETk4CHKKvX+QgjrOth+qVPQdif60Q==","shasum":"9912a75568313f05218271ed2df794e21b39800d","tarball":"https://registry.npmjs.org/@byndyusoft-ui/highlighter/-/highlighter-0.1.0.tgz","fileCount":9,"unpackedSize":7009,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3GfFa7ubtGxVKVbwJMV4N/uu23MsOngJcs3AbHP4rAwIgQJFGM+s4d0nCRqG6+jmMZV9BGQetGmXZEdnWtGGGXd4="}]},"_npmUser":{"name":"sadcitizen","email":"sadcitizen@yandex.ru"},"directories":{},"maintainers":[{"name":"sadcitizen","email":"sadcitizen@yandex.ru"},{"name":"alexanderbyndyu","email":"alexander.byndyu@yandex.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlighter_0.1.0_1730614117530_0.2758367934947772"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-03T06:08:37.434Z","0.1.0":"2024-11-03T06:08:37.713Z","modified":"2024-11-03T06:08:38.025Z"},"maintainers":[{"name":"sadcitizen","email":"sadcitizen@yandex.ru"},{"name":"alexanderbyndyu","email":"alexander.byndyu@yandex.ru"}],"description":"Byndyusoft UI Highlighter React Component","homepage":"https://github.com/Byndyusoft/ui/tree/master/components/Highlighter#readme","keywords":["byndyusoft","byndyusoft-ui","react","highlighter"],"repository":{"type":"git","url":"git+https://github.com/Byndyusoft/ui.git"},"author":{"name":"Zhukov Andrey","email":"zhukov@byndyusoft.com"},"bugs":{"url":"https://github.com/Byndyusoft/ui/issues"},"license":"ISC","readme":"# `@byndyusoft-ui/highlighter`\r\n\r\nThe `Highlighter` component is a React component designed to display and highlight text that matches a specified pattern. This component is flexible and allows for custom highlighting styles, making it useful for various text-emphasizing purposes such as search result highlighting or keyword emphasis.\r\n\r\n## Features\r\n\r\n- **Pattern Matching**: Highlights text matching a specified pattern.\r\n- **Case Sensitivity**: Supports both case-sensitive and case-insensitive matching.\r\n- **Custom Highlighting**: Allows the use of a custom function to define the highlighting style.\r\n- **Optimized Rendering**: Uses React's memoization (`memo`) to prevent unnecessary re-renders.\r\n\r\n## Installation\r\n\r\n```sh\r\nnpm i @byndyusoft-ui/highlighter\r\n# or\r\nyarn add @byndyusoft-ui/highlighter\r\n```\r\n\r\n## License\r\nThis project is licensed under the ISC License.","readmeFilename":"README.md"}