{"_id":"@brianmcallister/highlight-text","_rev":"16-a6768c80dbca47801e8c56430cb61a17","name":"@brianmcallister/highlight-text","description":"Hightlight `words` in `text`","dist-tags":{"latest":"2.0.4","next":"2.0.0-beta.3"},"versions":{"1.0.0":{"name":"@brianmcallister/highlight-text","version":"1.0.0","description":"Hightlight words in text.","repository":{"type":"git","url":"git+https://github.com/brianmcallister/highlight-text.git"},"main":"src/node/index.js","browser":"src/browser/index.js","scripts":{"test":"nyc --reporter=html --reporter=text mocha","test:watch":"npm t -- -w --reporter min","test:ci":"scripts/test-ci.sh","coverage":"nyc report --reporter=text-lcov | coveralls","dev":"babel --watch=./src --out-dir=./dist","build":"babel ./src --out-dir=./dist","flow":"flow","lint":"eslint --ignore-path .gitignore --ext .jsx --ext .js src","types":"flow-typed install"},"author":"","license":"ISC","dependencies":{"babel-cli":"6.18.0","babel-eslint":"7.1.1","babel-plugin-istanbul":"3.0.0","babel-plugin-transform-flow-strip-types":"6.21.0","babel-preset-es2015":"6.18.0","babel-preset-stage-0":"6.16.0","chai":"3.5.0","coveralls":"2.11.15","eslint":"3.12.1","eslint-config-airbnb":"13.0.0","eslint-plugin-flowtype":"2.29.1","eslint-plugin-import":"2.2.0","eslint-plugin-jsx-a11y":"3.0.2","eslint-plugin-react":"6.8.0","flow-bin":"0.37.1","flow-typed":"2.0.0","jsdom":"9.9.1","mocha":"3.2.0","nyc":"10.0.0","proxyquire":"1.7.10","sinon":"1.17.6"},"gitHead":"7131afa38cbbe05d3a7c5555f3883364724a919d","bugs":{"url":"https://github.com/brianmcallister/highlight-text/issues"},"homepage":"https://github.com/brianmcallister/highlight-text#readme","_id":"@brianmcallister/highlight-text@1.0.0","_shasum":"f2f0e4a12806e7f9acc8244a35cc5b1862101e2f","_from":".","_npmVersion":"4.0.2","_nodeVersion":"7.1.0","_npmUser":{"name":"brianmcallister","email":"brian@brianmcallister.com"},"dist":{"shasum":"f2f0e4a12806e7f9acc8244a35cc5b1862101e2f","tarball":"https://registry.npmjs.org/@brianmcallister/highlight-text/-/highlight-text-1.0.0.tgz","integrity":"sha512-p7+lOCMb0oJOJzidK1JBZai4cQ0ULiwrNnL/SXkCDJKnxHKhupIG7Zr8NJTI/IwmnI/awi7Hioj/gtQAAXqVSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDH/AfiROKiQw+LASJsfqjavaSGYVVM2N2xgE9um8FAiAIgB16YkkmyzAqAOqz0IENFEFEfLDS0tzVe7b4ErU/4yJQ="}]},"maintainers":[{"name":"brianmcallister","email":"brian@brianmcallister.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/highlight-text-1.0.0.tgz_1482194200717_0.8190475476440042"},"directories":{}},"1.1.0":{"name":"@brianmcallister/highlight-text","version":"1.1.0","description":"Hightlight words in text.","repository":{"type":"git","url":"git+https://github.com/brianmcallister/highlight-text.git"},"main":"src/node/index.js","browser":"src/browser/index.js","scripts":{"build":"npm run clean && babel ./src --out-dir=./dist","clean":"rimraf dist","coverage":"nyc report --reporter=text-lcov | coveralls","dev":"babel --watch=./src --out-dir=./dist","flow":"flow","lint":"eslint --ignore-path .gitignore --ext .jsx --ext .js src","prepublish":"npm run build","test:ci":"scripts/test-ci.sh","test:watch":"npm t -- -w --reporter min","test":"nyc --reporter=html --reporter=text mocha","types":"flow-typed install"},"author":"","license":"ISC","dependencies":{"babel-cli":"6.18.0","babel-eslint":"7.1.1","babel-plugin-istanbul":"3.0.0","babel-plugin-transform-flow-strip-types":"6.21.0","babel-preset-es2015":"6.18.0","babel-preset-stage-0":"6.16.0","chai":"3.5.0","coveralls":"2.11.15","eslint":"3.12.1","eslint-config-airbnb":"13.0.0","eslint-plugin-flowtype":"2.29.1","eslint-plugin-import":"2.2.0","eslint-plugin-jsx-a11y":"3.0.2","eslint-plugin-react":"6.8.0","flow-bin":"0.37.1","flow-typed":"2.0.0","jsdom":"9.9.1","mocha":"3.2.0","nyc":"10.0.0","proxyquire":"1.7.10","sinon":"1.17.6"},"gitHead":"6e2b2ad2851f8be58abaa3e5e41133c155f35093","bugs":{"url":"https://github.com/brianmcallister/highlight-text/issues"},"homepage":"https://github.com/brianmcallister/highlight-text#readme","_id":"@brianmcallister/highlight-text@1.1.0","_shasum":"444cd87245c1866dbc67e6b40461b7c3d59e857d","_from":".","_npmVersion":"4.0.2","_nodeVersion":"7.1.0","_npmUser":{"name":"brianmcallister","email":"brian@brianmcallister.com"},"dist":{"shasum":"444cd87245c1866dbc67e6b40461b7c3d59e857d","tarball":"https://registry.npmjs.org/@brianmcallister/highlight-text/-/highlight-text-1.1.0.tgz","integrity":"sha512-Op0ksgZzJIlEHm5zOcKEIcQq1oc7JLxTn4xunCOpFP5hciapVHPYuCzF8G+cc1Jiv5W6dWTL/PXD4sHvE9WnsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGbG9I4z/4xhzLpJuhohauzpye1kmoksEEtUKk4KL+hQIhAN7tDQkGMawLqLGY9nZxM1uawrQu5ljitpEA2jonM5is"}]},"maintainers":[{"name":"brianmcallister","email":"brian@brianmcallister.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/highlight-text-1.1.0.tgz_1482534115298_0.29025033209472895"},"directories":{}},"1.2.0":{"name":"@brianmcallister/highlight-text","version":"1.2.0","description":"Hightlight words in text.","repository":{"type":"git","url":"git+https://github.com/brianmcallister/highlight-text.git"},"main":"src/node/index.js","browser":"src/browser/index.js","scripts":{"build":"npm run clean && babel ./src --out-dir=./dist","clean":"rimraf dist","coverage":"nyc report --reporter=text-lcov | coveralls","dev":"babel --watch=./src --out-dir=./dist","flow":"flow","lint":"eslint --ignore-path .gitignore --ext .jsx --ext .js src","prepublish":"npm run build","test:ci":"scripts/test-ci.sh","test:watch":"npm t -- -w --reporter min","test":"nyc --reporter=html --reporter=text mocha","types":"flow-typed install"},"author":"","license":"ISC","dependencies":{"babel-cli":"6.18.0","babel-eslint":"7.1.1","babel-plugin-istanbul":"3.0.0","babel-plugin-transform-flow-strip-types":"6.21.0","babel-preset-es2015":"6.18.0","babel-preset-stage-0":"6.16.0","chai":"3.5.0","coveralls":"2.11.15","eslint":"3.12.1","eslint-config-airbnb":"13.0.0","eslint-plugin-flowtype":"2.29.1","eslint-plugin-import":"2.2.0","eslint-plugin-jsx-a11y":"3.0.2","eslint-plugin-react":"6.8.0","flow-bin":"0.37.1","flow-typed":"2.0.0","jsdom":"9.9.1","mocha":"3.2.0","nyc":"10.0.0","proxyquire":"1.7.10","sinon":"1.17.6"},"gitHead":"00eb87dcf1f1a75c9179964acd6651c0e3a50622","bugs":{"url":"https://github.com/brianmcallister/highlight-text/issues"},"homepage":"https://github.com/brianmcallister/highlight-text#readme","_id":"@brianmcallister/highlight-text@1.2.0","_shasum":"31764780cd11b900fc1dcd30f1a3a18bd9ef1974","_from":".","_npmVersion":"4.0.2","_nodeVersion":"7.1.0","_npmUser":{"name":"brianmcallister","email":"brian@brianmcallister.com"},"dist":{"shasum":"31764780cd11b900fc1dcd30f1a3a18bd9ef1974","tarball":"https://registry.npmjs.org/@brianmcallister/highlight-text/-/highlight-text-1.2.0.tgz","integrity":"sha512-7HVMeDEKH47PZc1a3hOA3EWLZBEQXngX82Ke1SXkdU7kvv7RrH2+quZSstVcQJf3XC5CqbNcsBnydxjtUipenQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAagyXhOrSA7vL6MxgmiFQfBCasQyynmTlTp1HjTiS0bAiBNbi3aqBxHw6qdnb25FkKu0aiqUO1YfHt31Na3mxfBSw=="}]},"maintainers":[{"name":"brianmcallister","email":"brian@brianmcallister.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/highlight-text-1.2.0.tgz_1482534322690_0.33761763921938837"},"directories":{}},"1.2.1":{"name":"@brianmcallister/highlight-text","version":"1.2.1","description":"Hightlight words in text.","repository":{"type":"git","url":"git+https://github.com/brianmcallister/highlight-text.git"},"main":"src/node/index.js","browser":"src/browser/index.js","scripts":{"build":"npm run clean && babel ./src --out-dir=./dist","clean":"rimraf dist","coverage":"nyc report --reporter=text-lcov | coveralls","dev":"babel --watch=./src --out-dir=./dist","flow":"flow","lint":"eslint --ignore-path .gitignore --ext .jsx --ext .js src","prepublish":"npm run build","test:ci":"scripts/test-ci.sh","test:watch":"npm t -- -w --reporter min","test":"nyc --reporter=html --reporter=text mocha","types":"flow-typed install"},"author":"","license":"ISC","dependencies":{"babel-cli":"6.18.0","babel-eslint":"7.1.1","babel-plugin-istanbul":"3.0.0","babel-plugin-transform-flow-strip-types":"6.21.0","babel-preset-es2015":"6.18.0","babel-preset-stage-0":"6.16.0","chai":"3.5.0","coveralls":"2.11.15","eslint":"3.12.1","eslint-config-airbnb":"13.0.0","eslint-plugin-flowtype":"2.29.1","eslint-plugin-import":"2.2.0","eslint-plugin-jsx-a11y":"3.0.2","eslint-plugin-react":"6.8.0","flow-bin":"0.37.4","flow-typed":"2.0.0","jsdom":"9.9.1","mocha":"3.2.0","nyc":"10.0.0","proxyquire":"1.7.10","sinon":"1.17.6"},"gitHead":"507dc6f2eaec3f5772b95fc5e2db39e36ccc8de5","bugs":{"url":"https://github.com/brianmcallister/highlight-text/issues"},"homepage":"https://github.com/brianmcallister/highlight-text#readme","_id":"@brianmcallister/highlight-text@1.2.1","_shasum":"b7036b7e8ece6f5a2f64a4af41d671727701724d","_from":".","_npmVersion":"4.0.2","_nodeVersion":"7.1.0","_npmUser":{"name":"brianmcallister","email":"brian@brianmcallister.com"},"dist":{"shasum":"b7036b7e8ece6f5a2f64a4af41d671727701724d","tarball":"https://registry.npmjs.org/@brianmcallister/highlight-text/-/highlight-text-1.2.1.tgz","integrity":"sha512-71ijTit3OEKi6t2WEdLFOJN15VFdTvNl93msXXEqp2ahKk7kJ6EGy1YejHulITORglfG08RMCDbQhEisRWl1RQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBOt9O9boMe0m3O4RdWc0HYSbrlCH5TXhqq2EwpL5U0mAiBGZ9JGo/0I+6NqV9rUsp0UfO+4gjsT9eGC/ZmkyO4ZOw=="}]},"maintainers":[{"name":"brianmcallister","email":"brian@brianmcallister.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/highlight-text-1.2.1.tgz_1482605175389_0.5890348483808339"},"directories":{}},"2.0.0-beta.0":{"name":"@brianmcallister/highlight-text","version":"2.0.0-beta.0","description":"Hightlight words in text.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/brianmcallister/highlight-text.git"},"author":{"name":"Brian Wm. McAllister","email":"brian@brianmcallister.com","url":"https://www.brianmcallister.com"},"main":"src/node/index.js","browser":"src/browser/index.js","keywords":["highlight","text","dom","strings"],"scripts":{"build":"npm run clean && npm run build:types && webpack && rimraf dist/*/__tests__","build:types":"tsc --outdir dist","clean":"rimraf dist","lint":"eslint --cache --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore ./src ./demo","prepare":"npm run build","test":"jest","types":"tsc --noEmit"},"dependencies":{"@babel/core":"7.7.0","@babel/preset-env":"7.7.1","@babel/preset-typescript":"7.7.0","@types/jest":"24.0.22","@types/node":"12.12.6","@typescript-eslint/eslint-plugin":"2.6.1","@typescript-eslint/parser":"2.6.1","babel-loader":"8.0.6","eslint":"6.6.0","eslint-config-airbnb":"18.0.1","eslint-config-airbnb-typescript":"6.0.0","eslint-config-prettier":"6.5.0","eslint-plugin-import":"2.18.2","eslint-plugin-jest":"23.0.2","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-prettier":"3.1.1","eslint-plugin-react":"7.16.0","eslint-plugin-react-hooks":"1.7.0","jest":"24.9.0","prettier":"1.18.2","typescript":"3.7.2","webpack":"4.41.2","webpack-cli":"3.3.10"},"readme":"# @brianmcallister/highlight-text [![Coverage Status](https://coveralls.io/repos/github/brianmcallister/highlight-text/badge.svg?branch=master)](https://coveralls.io/github/brianmcallister/highlight-text?branch=bm-add-c) [![Build Status](https://travis-ci.org/brianmcallister/highlight-text.svg?branch=master)](https://travis-ci.org/brianmcallister/highlight-text) [![Dependencies](https://david-dm.org/brianmcallister/highlight-text.svg)](https://david-dm.org/brianmcallister/highlight-text)\n\n`highlight-text` makes highlighting words and characters in a string quick and easy. This library is primarily used for adding a visual indicator to any text in a web page, much like the default search feature in your browser.\n\nThis is a great way to highlight search results collected from an input field within your application, or a range of possible use cases:\n\n- User configured search terms in a chat application\n- Administrator configured announcements\n- Visual design elements\n\nBy default, the library will accept a string and some sub strings to search for. It will return all of the found strings surrounded by [`<mark>` tags](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark). This is configurable, in case you want to use any arbitrary string.\n\n## Installation\n\n```sh\nnpm install @brianmcallister/highlight-text\n```\n\n## API\n\n### `highlightText`\n\nThis is the default export. Use this function to highlight words in text.\n\n```js\nhighlightText(text: string, words: string[]): string;\n```\n\n#### Example\n\n```js\nimport highlightText from '@brianmcallister/highlight-text';\n\nhighlightText('some text', ['om', 'ex']);\n// #=> 's<mark>om</mark>e t<mark>ex</mark>t'\n```","readmeFilename":"README.md","gitHead":"928aeaf18cfd9e18b296ea5f83e6fc571fc04bd9","bugs":{"url":"https://github.com/brianmcallister/highlight-text/issues"},"homepage":"https://github.com/brianmcallister/highlight-text#readme","_id":"@brianmcallister/highlight-text@2.0.0-beta.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.2","_npmUser":{"name":"brianmcallister","email":"brian@brianmcallister.com"},"dist":{"integrity":"sha512-kjGo13nb70O7My9367X/DoFOxBHencYQ/W9UhbLuUUgduzz5W/KhWr3v92Lf4O4falbdpuKIVquTZDGfVx/wGg==","shasum":"cbc8e5a65e903e8e8bc41d42f0c22704d5d00ac0","tarball":"https://registry.npmjs.org/@brianmcallister/highlight-text/-/highlight-text-2.0.0-beta.0.tgz","fileCount":33,"unpackedSize":27015,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxFkiCRA9TVsSAnZWagAART0P/RbVOMKEEtkTWHEnMWGo\nGmlTuI1ST4ZXjH1Y5LSGJo629a6ig0dJHzRgGF5kddkrKlrl6lz3kbUz4Wzz\nc7uxUa0a+KwuB5Y1Ksyk2D6IMch6JuG4pGg3Qk/vqg0DPez3RXPw6JrGDalf\n2BWA6rGg7Pe3Lrhw6Rlj7a0SrvE9U1ns06f6dyzNWAI9A0txFA310pychcYY\nj8kybPlhcl1+OnBRJ7ce5baI14bOxay6aBmSAbnfCym06Bc15wJPEKvSbZst\neYFYU6U7RPiwXepVphVVRFF6ACBJTdEXQpoZPMYBlobZeqzIu6T0DwB1dVwi\nroNmJvGCIyZCuuVKEzYEeVDj+SfJn+CFV4kdaAh0+QqkPWqp2dWm1RYWPNnh\nmriUjh93bdDoEfIhQ3uJA2+93vGBzZtHaPYsD3y7wE/vYJG3wui6Qy0aLxs4\n+GKeefd3AAwOvl+WSYVRE4eBEAr5n2QfO5IpRV6T4nk2h0Mr5Zw49TibWWG7\n9eBtxmz58RJNCeTpjKB58paWVDMzjtVwc8g84CDxDzZgXcd0TCibwG8QrRGx\n8IWRxJ04cn60K/bUMzAZl//cuM8G/Ua14Dn2ZDktrCYThitajeZyn57iQPzm\nql5s77kLqNpBUx+4f6TDmsD5/exRvFsJ8EdoaLcKK1K1FXY3j1L7zdeWjMl5\nOvgI\r\n=2XMz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvjcxO3ZUSIxSUd8mzzgzEtdu/K6tybiiUk8sZ1nBCzQIhALIppLUEglh+HDqsXOd2vMr1tipx35neemoISpCW9NrD"}]},"maintainers":[{"name":"brianmcallister","email":"brian@brianmcallister.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlight-text_2.0.0-beta.0_1573148962199_0.646147173912222"},"_hasShrinkwrap":false},"2.0.0-beta.1":{"name":"@brianmcallister/highlight-text","version":"2.0.0-beta.1","description":"Hightlight words in text.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/brianmcallister/highlight-text.git"},"author":{"name":"Brian Wm. McAllister","email":"brian@brianmcallister.com","url":"https://www.brianmcallister.com"},"main":"dis/node/index.js","keywords":["highlight","text","dom","strings"],"scripts":{"build":"npm run clean && npm run build:types && webpack && rimraf dist/*/__tests__","build:types":"tsc --outdir dist","clean":"rimraf dist","lint":"eslint --cache --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore ./src ./demo","prepare":"npm run build","test":"jest","types":"tsc --noEmit"},"dependencies":{"@babel/core":"7.7.0","@babel/preset-env":"7.7.1","@babel/preset-typescript":"7.7.0","@types/jest":"24.0.22","@types/node":"12.12.6","@typescript-eslint/eslint-plugin":"2.6.1","@typescript-eslint/parser":"2.6.1","babel-loader":"8.0.6","eslint":"6.6.0","eslint-config-airbnb":"18.0.1","eslint-config-airbnb-typescript":"6.0.0","eslint-config-prettier":"6.5.0","eslint-plugin-import":"2.18.2","eslint-plugin-jest":"23.0.2","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-prettier":"3.1.1","eslint-plugin-react":"7.16.0","eslint-plugin-react-hooks":"1.7.0","jest":"24.9.0","prettier":"1.18.2","typescript":"3.7.2","webpack":"4.41.2","webpack-cli":"3.3.10"},"readme":"# @brianmcallister/highlight-text [![Coverage Status](https://coveralls.io/repos/github/brianmcallister/highlight-text/badge.svg?branch=master)](https://coveralls.io/github/brianmcallister/highlight-text?branch=bm-add-c) [![Build Status](https://travis-ci.org/brianmcallister/highlight-text.svg?branch=master)](https://travis-ci.org/brianmcallister/highlight-text) [![Dependencies](https://david-dm.org/brianmcallister/highlight-text.svg)](https://david-dm.org/brianmcallister/highlight-text)\n\n`highlight-text` makes highlighting words and characters in a string quick and easy. This library is primarily used for adding a visual indicator to any text in a web page, much like the default search feature in your browser.\n\nThis is a great way to highlight search results collected from an input field within your application, or a range of possible use cases:\n\n- User configured search terms in a chat application\n- Administrator configured announcements\n- Visual design elements\n\nBy default, the library will accept a string and some sub strings to search for. It will return all of the found strings surrounded by [`<mark>` tags](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark). This is configurable, in case you want to use any arbitrary string.\n\n## Installation\n\n```sh\nnpm install @brianmcallister/highlight-text\n```\n\n## API\n\n### `highlightText`\n\nThis is the default export. Use this function to highlight words in text.\n\n```js\nhighlightText(text: string, words: string[]): string;\n```\n\n#### Example\n\n```js\nimport highlightText from '@brianmcallister/highlight-text';\n\nhighlightText('some text', ['om', 'ex']);\n// #=> 's<mark>om</mark>e t<mark>ex</mark>t'\n```","readmeFilename":"README.md","gitHead":"6af17bdf6d34c0ab35ae63cbeda1d3ebf4913736","bugs":{"url":"https://github.com/brianmcallister/highlight-text/issues"},"homepage":"https://github.com/brianmcallister/highlight-text#readme","_id":"@brianmcallister/highlight-text@2.0.0-beta.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.2","_npmUser":{"name":"brianmcallister","email":"brian@brianmcallister.com"},"dist":{"integrity":"sha512-1L2g4xXD93ydPZWhDutFRwjVFfhDiOJ89mWHsinh2ej15jH4vSR7xs561gp6jKB8KydM/iZpZHJfxKom/awWsw==","shasum":"3df3134188253e2d63fb6b3c7b9a95d8b4768cdf","tarball":"https://registry.npmjs.org/@brianmcallister/highlight-text/-/highlight-text-2.0.0-beta.1.tgz","fileCount":19,"unpackedSize":30882,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxFr6CRA9TVsSAnZWagAA2vQP/3MaZ1WGZKHWcNTqy4ks\nbF1xBaQYtRIJJTdLQK313T5C1AsCnPzd37cUnKNCvGhR17TxqYHC4Qse4as2\n1U02p+DSgDCD5JRcZdOMk1t7Hh1UpEfdcTuVP/9iT3folOSMIETW36tORXTN\ncInFDdOe5UuRfuzlxeLQulPuLJwzMRQwWVKg9aMTrLtBYSLV1M3uyGw8W751\nST9m/adAkru6EKxknMWnCiAbMAek53Y2a7hYiJmSK9bcf3iAGb8oHjFBFrPm\nx425zYeeFmxNzPJsQE8B4RV5XOQzDNZEb++wP/c8otByI9w1gdbz6IYIDeoO\n7VIhQ7lzxYSOuKXdX9HVQz/WwiKWNRc/1d4HPUvqQZwbcQzHrvrwKfXvg7Jy\nvbZ3/iTTe21hxoOsYaQc1mNdlZhbn1NXwzXKGSgRKdlPEpnmB4iv9XLPwSxb\nO6b3TD93RwjFUZ0HevKHfxvE6KEEUD3WDIUFhznwycpcd5vSzAqtjrf0rKQl\nUXO088ADfAafG3OaV3Pr/f1n6cj5jTrLGtfZ6lAa2inMO06oxWOzPz2txYUm\nRy/mRuM3kzK3h8gZUndc+f1vrOrFSoEEpZwdtefru9nw29jJN+U/gbSmConI\nZ/MPAKttrQHjWtbORBhdvn8GZV8wK9c7upJ4yDou3siuFYJxjYFohXU/e5fY\n1wjS\r\n=K7YW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxJX6DNinVV0ZFSVG8KdZDtX/BVeEIxG2m6bbt761C8wIhAIveRAa1JoFzoe1MeVlmWDjqwD0Fy8m5Hke6Vc9X8KXw"}]},"maintainers":[{"name":"brianmcallister","email":"brian@brianmcallister.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlight-text_2.0.0-beta.1_1573149434263_0.2439083251414147"},"_hasShrinkwrap":false},"2.0.0-beta.2":{"name":"@brianmcallister/highlight-text","version":"2.0.0-beta.2","description":"Hightlight words in text.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/brianmcallister/highlight-text.git"},"author":{"name":"Brian Wm. McAllister","email":"brian@brianmcallister.com","url":"https://www.brianmcallister.com"},"main":"dist/index.js","keywords":["highlight","text","dom","strings"],"scripts":{"build":"npm run clean && npm run build:types && webpack && rimraf dist/*/__tests__","build:types":"tsc --outdir dist","clean":"rimraf dist","lint":"eslint --cache --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore ./src ./demo","prepare":"npm run build","test":"jest","types":"tsc --noEmit"},"dependencies":{"@babel/core":"7.7.0","@babel/preset-env":"7.7.1","@babel/preset-typescript":"7.7.0","@types/jest":"24.0.22","@types/node":"12.12.6","@typescript-eslint/eslint-plugin":"2.6.1","@typescript-eslint/parser":"2.6.1","babel-loader":"8.0.6","eslint":"6.6.0","eslint-config-airbnb":"18.0.1","eslint-config-airbnb-typescript":"6.0.0","eslint-config-prettier":"6.5.0","eslint-plugin-import":"2.18.2","eslint-plugin-jest":"23.0.2","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-prettier":"3.1.1","eslint-plugin-react":"7.16.0","eslint-plugin-react-hooks":"1.7.0","jest":"24.9.0","prettier":"1.18.2","typescript":"3.7.2","webpack":"4.41.2","webpack-cli":"3.3.10"},"readme":"# @brianmcallister/highlight-text [![Coverage Status](https://coveralls.io/repos/github/brianmcallister/highlight-text/badge.svg?branch=master)](https://coveralls.io/github/brianmcallister/highlight-text?branch=bm-add-c) [![Build Status](https://travis-ci.org/brianmcallister/highlight-text.svg?branch=master)](https://travis-ci.org/brianmcallister/highlight-text) [![Dependencies](https://david-dm.org/brianmcallister/highlight-text.svg)](https://david-dm.org/brianmcallister/highlight-text)\n\n`highlight-text` makes highlighting words and characters in a string quick and easy. This library is primarily used for adding a visual indicator to any text in a web page, much like the default search feature in your browser.\n\nThis is a great way to highlight search results collected from an input field within your application, or a range of possible use cases:\n\n- User configured search terms in a chat application\n- Administrator configured announcements\n- Visual design elements\n\nBy default, the library will accept a string and some sub strings to search for. It will return all of the found strings surrounded by [`<mark>` tags](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark). This is configurable, in case you want to use any arbitrary string.\n\n## Installation\n\n```sh\nnpm install @brianmcallister/highlight-text\n```\n\n## API\n\n### `highlightText`\n\nThis is the default export. Use this function to highlight words in text.\n\n```js\nhighlightText(text: string, words: string[]): string;\n```\n\n#### Example\n\n```js\nimport highlightText from '@brianmcallister/highlight-text';\n\nhighlightText('some text', ['om', 'ex']);\n// #=> 's<mark>om</mark>e t<mark>ex</mark>t'\n```","readmeFilename":"README.md","gitHead":"317090a957df289501bee266acf5dfb83631681f","bugs":{"url":"https://github.com/brianmcallister/highlight-text/issues"},"homepage":"https://github.com/brianmcallister/highlight-text#readme","_id":"@brianmcallister/highlight-text@2.0.0-beta.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.2","_npmUser":{"name":"brianmcallister","email":"brian@brianmcallister.com"},"dist":{"integrity":"sha512-KjEx9LOzpz08hUyTNeGBuOneE8AGiLk2hW0EuVvzH82NU5eciz2z2OCIceF8h7ZVPcmcZTaQojqFoqYl4OgJPQ==","shasum":"25cc1a08f3cead7a144e1600dc5b460387a26a9e","tarball":"https://registry.npmjs.org/@brianmcallister/highlight-text/-/highlight-text-2.0.0-beta.2.tgz","fileCount":19,"unpackedSize":30878,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxFwTCRA9TVsSAnZWagAA0z4P/1Z7q3M9Z5haAqNWfm36\n2qqyedUB0wawDK9I/BHbfXtPGf1ShHX8OWMpBFpX6fHeVJi/+LOqM5h2vIN+\nd/0yGkOgcAXvAuYrqdUyO4aAn4+X6+vXrT/pCsnx0B2cg6Zktf6vnTPiSV7p\nT+SBUKN6iuajbrHg3RjLlqfWiO5VQA7XFhO9qc7Sf7cPCIYbujsY2Tm4Y7UG\npKqqrJlx/pboznKTY98y+rlDgS8092w7FMHAvX6NUemWVad48t43jF8c3Es2\nWEwm5c/IyoemKaS/AsSmKlCuWtTYRmLakqwXOPERkh75o9p9FBPa5K6ZepLv\nBli3D6wmDD353KAXGfMhJIoGKlwv/Dvi2mUSxlayAzRr6h0/oMZWiOcuWD6M\nSfc6TIw7t5ik5R1z2NAp+wNAAAFu2hI07PDoKRuj4wqJOUCh4X12Pc7rB36M\n2TjZ0NNh3mKWq97by5V0VMXJe4A/R5VqzXU4579wMNVwDC/lXAaUM3EWuT/S\nsWkDFYba/5pdBdvPtTx2wMnKvcjpNNhCVvbEfRAkQVhm/UUf4B+oR0NzdzWu\npMvan99rVu4/SoemetRatlXbDqcmRsA0AFBweHbk7/i5LQyYCJtjFXkU+MW6\n+c/nkIGg0shwu8nnu1k3TCqaTbTucz05PjPT8tsUPAJLHhw5OwU1DU8saLbc\nUV/r\r\n=PCXd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt6qzlM5+sSms6Z2tAODHf6zjc+YUzdSy1YEf5d0XvdQIgcUSdnJF7XniE0xs8uZ2izQbAGSZxdaDW28iO7uA2Aa4="}]},"maintainers":[{"name":"brianmcallister","email":"brian@brianmcallister.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlight-text_2.0.0-beta.2_1573149715019_0.7880940456055758"},"_hasShrinkwrap":false},"2.0.0-beta.3":{"name":"@brianmcallister/highlight-text","version":"2.0.0-beta.3","description":"Hightlight words in text.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/brianmcallister/highlight-text.git"},"author":{"name":"Brian Wm. McAllister","email":"brian@brianmcallister.com","url":"https://www.brianmcallister.com"},"main":"dist/index.js","keywords":["highlight","text","dom","strings"],"scripts":{"build:types":"tsc --outdir dist","build":"npm run clean && npm run build:types && webpack && rimraf dist/*/__tests__","clean":"rimraf dist","lint":"eslint --cache --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore ./src ./demo","prepare":"npm run build","stylelint":"stylelint demo/**/*.scss","test":"jest","types":"tsc --noEmit"},"dependencies":{"@babel/core":"7.7.0","@babel/preset-env":"7.7.1","@babel/preset-typescript":"7.7.0","@types/classnames":"2.2.9","@types/jest":"24.0.22","@types/node":"12.12.6","@typescript-eslint/eslint-plugin":"2.6.1","@typescript-eslint/parser":"2.6.1","babel-loader":"8.0.6","classnames":"2.2.6","eslint":"6.6.0","eslint-config-airbnb":"18.0.1","eslint-config-airbnb-typescript":"6.0.0","eslint-config-prettier":"6.5.0","eslint-plugin-import":"2.18.2","eslint-plugin-jest":"23.0.2","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-prettier":"3.1.1","eslint-plugin-react":"7.16.0","eslint-plugin-react-hooks":"1.7.0","jest":"24.9.0","prettier":"1.18.2","stylelint":"11.1.1","stylelint-config-recommended":"3.0.0","stylelint-config-sass-guidelines":"6.1.0","stylelint-scss":"3.12.1","typescript":"3.7.2","webpack":"4.41.2","webpack-cli":"3.3.10"},"readme":"# @brianmcallister/highlight-text [![Coverage Status](https://coveralls.io/repos/github/brianmcallister/highlight-text/badge.svg?branch=master)](https://coveralls.io/github/brianmcallister/highlight-text?branch=bm-add-c) [![Build Status](https://travis-ci.org/brianmcallister/highlight-text.svg?branch=master)](https://travis-ci.org/brianmcallister/highlight-text) [![Dependencies](https://david-dm.org/brianmcallister/highlight-text.svg)](https://david-dm.org/brianmcallister/highlight-text) [![Netlify Status](https://api.netlify.com/api/v1/badges/2b1ad5fe-39ec-4437-a76c-08669e6cef54/deploy-status)](https://app.netlify.com/sites/competent-bose-28432a/deploys)\n\n`highlight-text` makes highlighting words and characters in a string quick and easy. This library is primarily used for adding a visual indicator to any text in a web page, much like the default search feature in your browser.\n\nThis is a great way to highlight search results collected from an input field within your application, or a range of possible use cases:\n\n- User configured search terms in a chat application\n- Administrator configured announcements\n- Visual design elements\n\nBy default, the library will accept a string and some sub strings to search for. It will return all of the found strings surrounded by [`<mark>` tags](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark). This is configurable, in case you want to use any arbitrary string.\n\n## Installation\n\n```sh\nnpm install @brianmcallister/highlight-text\n```\n\n## API\n\n### `highlightText`\n\nThis is the default export. Use this function to highlight words in text.\n\n```js\nhighlightText(text: string, words: string[]): string;\n```\n\n#### Example\n\n```js\nimport highlightText from '@brianmcallister/highlight-text';\n\nhighlightText('some text', ['om', 'ex']);\n// #=> 's<mark>om</mark>e t<mark>ex</mark>t'\n```\n","readmeFilename":"README.md","gitHead":"edf310cf0712000c90be79cefde22c0a9d4c3551","bugs":{"url":"https://github.com/brianmcallister/highlight-text/issues"},"homepage":"https://github.com/brianmcallister/highlight-text#readme","_id":"@brianmcallister/highlight-text@2.0.0-beta.3","_npmVersion":"6.4.1","_nodeVersion":"10.15.2","_npmUser":{"name":"brianmcallister","email":"brian@brianmcallister.com"},"dist":{"integrity":"sha512-ZX7tZ/3nwZ0tCTMsIhezpmh+WjZqn75uH4+Ew/Xph5r4JJiNolF3aYSxBxMpD1LgndOYHNNmAE280uzH5fYMyA==","shasum":"9982d0582eebdc1d7c81067ce673e4ffbdcb210b","tarball":"https://registry.npmjs.org/@brianmcallister/highlight-text/-/highlight-text-2.0.0-beta.3.tgz","fileCount":19,"unpackedSize":30626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxwE6CRA9TVsSAnZWagAAH1wP/iAyklffPcRuguBnGWBo\nabZzCxxmE2TBcUjphVCE9KQlRX3swW4N4LhlKNfx2zlIVdCTdrqR7bViiHGc\nlJSM9N/6d0LgqYxJQF44DEPdBue7E+Gn7Vtb1wHZsfHkRKP48U8iRDyRJFVM\ncV9WiYrJJtkyxL7+bJ/ViTxslXgbS08CznNVS8HIOvib7RJpVIODwOm1SM5q\nSdn7xCA3qW+cTAeF9AlhwDsdGIyEyhnX4EMpmIr/gEurCEw4l1TrvNcZ4x2z\nUH1CYJE2zncEU8sodSaqCIafl6StyDfO7rQc0nu6ElcsQCfISMMMjYbtiyiu\nIsrzP7gP7pV/Cmv7IV9PndWeQHxCqsyG4HdjsxDI6KN4mr+P2oI6oMfj17Wd\nt3Uc04gjmLeB/Pqnxx64KSFS3eIuHU1H+CYr9z5QBXZxxjZC6I7c5JitSE7d\nhwXqrB3WALicMbOzPQhE79tmI4EaJhcdUP3M2PBiGbQgFcUYpOax5KzfNDH1\nsnwBBus2kZASIM6tZ9n32BiN7FgvN9gEpmxS8ImznXqZkXAcon6fgXu80ZDh\n7LSAraETLV+EgPIf9mdbMcHmP7Yix1Z0rcQ36O3dNuqDKUa7x4dI443qLId7\nr8lfj8UfcBQa8CxAs1QGgk3qEeqOFgGdgLXDla2Ikagt3sqoDS8+iFmXwSvX\n9uWH\r\n=0IAS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhwWrgoDofpS0P/rYA6/txCxL1OKBPuWQiVRHAJ7UZtwIhAP5AxX/OjT79wC8FOQYfn00ZY6WQurarBVMipGgy+WBB"}]},"maintainers":[{"name":"brianmcallister","email":"brian@brianmcallister.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlight-text_2.0.0-beta.3_1573323066199_0.08376659957579835"},"_hasShrinkwrap":false},"2.0.0":{"name":"@brianmcallister/highlight-text","version":"2.0.0","description":"Hightlight words in text.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/brianmcallister/highlight-text.git"},"author":{"name":"Brian Wm. McAllister","email":"brian@brianmcallister.com","url":"https://www.brianmcallister.com"},"main":"dist/index.js","keywords":["highlight","text","dom","strings"],"scripts":{"build:types":"tsc --outdir dist","build":"npm run clean && npm run build:types && webpack && rimraf dist/*/__tests__","clean":"rimraf dist","lint":"eslint --cache --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore ./src ./demo","prepare":"npm run build","stylelint":"stylelint demo/**/*.scss","test":"jest","types":"tsc --noEmit"},"dependencies":{"@babel/core":"7.7.0","@babel/preset-env":"7.7.1","@babel/preset-typescript":"7.7.0","@types/classnames":"2.2.9","@types/jest":"24.0.22","@types/node":"12.12.6","@typescript-eslint/eslint-plugin":"2.6.1","@typescript-eslint/parser":"2.6.1","babel-loader":"8.0.6","classnames":"2.2.6","eslint":"6.6.0","eslint-config-airbnb":"18.0.1","eslint-config-airbnb-typescript":"6.0.0","eslint-config-prettier":"6.5.0","eslint-plugin-import":"2.18.2","eslint-plugin-jest":"23.0.2","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-prettier":"3.1.1","eslint-plugin-react":"7.16.0","eslint-plugin-react-hooks":"1.7.0","jest":"24.9.0","prettier":"1.18.2","stylelint":"11.1.1","stylelint-config-recommended":"3.0.0","stylelint-config-sass-guidelines":"6.1.0","stylelint-scss":"3.12.1","typescript":"3.7.2","webpack":"4.41.2","webpack-cli":"3.3.10"},"gitHead":"3f1d5332a99262f8f166884adb16233980a0a603","bugs":{"url":"https://github.com/brianmcallister/highlight-text/issues"},"homepage":"https://github.com/brianmcallister/highlight-text#readme","_id":"@brianmcallister/highlight-text@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.2","_npmUser":{"name":"brianmcallister","email":"brian@brianmcallister.com"},"dist":{"integrity":"sha512-gQ0MQtw9D1dymvJ/z7fKPBR6E2s+/MXeAfB9ueRa2eD73oOVDDjXurvRCV/9y84BftlP+hZLA3WtiPOycUqBeQ==","shasum":"5868abf93e6a45f53d143b7e822a1bc599de298f","tarball":"https://registry.npmjs.org/@brianmcallister/highlight-text/-/highlight-text-2.0.0.tgz","fileCount":19,"unpackedSize":30696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxwQQCRA9TVsSAnZWagAAnccP/jO7NYT8mKYQ7WyHPvuC\n6UMV583IRAZpPLI7QD6L3nUMiiyT/6jWqxd1pwNkSiIVgWtk7XKXpn9JnOxV\nY9zhXQWpir96qXN4Qb64Ic+/FQSR3dvukPg2j8zbWC6BQFdUMszuY+lpJon5\nY99jejfnUiThlXoScQw22M0n0Y2fMNKNia5f+luovherojcwNwxB7jrlQHAu\nkkvURd5DvzJTswxx8StnltqgqqP76q3Dr0aRn6CIb8Sj9aWTSf2/lSwauE/+\nR7LLtpJveHOio0PA/W9IwONz3t2fQ4iogN4dUxkBWkCPmCqheyIFeoqGpRk4\nCoJ+A/lWfj1C9bAcszWRc939A3H8sah5LnU01yzpkVe/5fv1sidzvWeI39zP\ny78EODqRi39caCCA2t6Mcw+RNz/eQXI2vYBZEMcAQKd0ty86oK/YsVwNDN9w\nnSwL8FFjzMlW2yOvhYESeBv34cyCbDvuT3EFt3J5irMgyjHkdd2TDPPrnBjq\nz68wPNQmPH507vHIjtgO1oL5h6VLyg2HuUONTGK4cuNtNrYRyxa5cyh44MnF\nJM3PE0K8CrMH0yTlihvnFJA/KknoCTVqzg1XcjlNkIA64arfxrOKsc+Kv1Zn\nW0hZpzOQLFs6lSH6NT2RLDTAaInNtbDVo2FjBB16ZQAhirUKDbHGY0ArOGoA\n5VZZ\r\n=WZWO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAtCX2w1Yhf8It18IS9wENf9oLWU22irhBFTuc1cqq9FAiAys/lCLl+ucTEL//KTfzOYi22kGB5FMS1bR+PAUjFYFw=="}]},"maintainers":[{"name":"brianmcallister","email":"brian@brianmcallister.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlight-text_2.0.0_1573323792418_0.2799411801032854"},"_hasShrinkwrap":false},"2.0.1":{"name":"@brianmcallister/highlight-text","version":"2.0.1","description":"Hightlight `words` in `text`","main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/brianmcallister/highlight-text.git"},"homepage":"https://highlight-text.netlify.com/","license":"MIT","author":{"name":"Brian Wm. McAllister","email":"brian@brianmcallister.com","url":"https://www.brianmcallister.com"},"keywords":["highlight","highlight-text","dom","string-manipulation","markup","text"],"scripts":{"build:types":"tsc --outdir dist","build":"npm run clean && npm run build:types && webpack && rimraf dist/*/__tests__","clean":"rimraf dist","lint":"eslint --cache --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore ./src ./demo","prepare":"npm run build","stylelint":"stylelint demo/**/*.scss","test":"jest","types":"tsc --noEmit"},"devDependencies":{"@babel/core":"7.7.2","@babel/preset-env":"7.7.1","@babel/preset-typescript":"7.7.2","@types/classnames":"2.2.9","@types/jest":"24.0.22","@types/node":"12.12.7","@typescript-eslint/eslint-plugin":"2.6.1","@typescript-eslint/parser":"2.6.1","babel-loader":"8.0.6","classnames":"2.2.6","eslint":"6.6.0","eslint-config-airbnb":"18.0.1","eslint-config-airbnb-typescript":"6.0.0","eslint-config-prettier":"6.5.0","eslint-plugin-eslint-comments":"3.1.2","eslint-plugin-import":"2.18.2","eslint-plugin-jest":"23.0.3","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-prettier":"3.1.1","eslint-plugin-promise":"4.2.1","eslint-plugin-react":"7.16.0","eslint-plugin-react-hooks":"2.2.0","eslint-plugin-unicorn":"13.0.0","jest":"24.9.0","prettier":"1.19.1","stylelint":"11.1.1","stylelint-config-recommended":"3.0.0","stylelint-config-sass-guidelines":"6.1.0","stylelint-scss":"3.12.1","typescript":"3.7.2","webpack":"4.41.2","webpack-cli":"3.3.10"},"gitHead":"db02358d4f35af47cd9f6e3559fe1490684acd3e","bugs":{"url":"https://github.com/brianmcallister/highlight-text/issues"},"_id":"@brianmcallister/highlight-text@2.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.2","_npmUser":{"name":"brianmcallister","email":"brian@brianmcallister.com"},"dist":{"integrity":"sha512-Rh7VpMfUk1rBSXUyN3nsTCBM8exSJO2Ls+DmFfa3XX2cUReWncYHm1VOuYVTQQSHr7MZI6vMIPxqYVkHNzPf1Q==","shasum":"68834860723fe23705390a3b187665d5103279a5","tarball":"https://registry.npmjs.org/@brianmcallister/highlight-text/-/highlight-text-2.0.1.tgz","fileCount":18,"unpackedSize":31279,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0CU/CRA9TVsSAnZWagAAbDUP+wXpbzIyiShfMjTJrRMg\noxOayZQLwCotNWGGC0tI2NhUEqS1t96MCGOlK9dVMffz0LxYcs4jG/3tMCux\nQ08jk0/Ljire1abMIoDI3yd4meeIzsCjee8JnHilU4LGyURJescoG7rg6nXv\nowDVKEQs3V28xMdrIPq6mYrXk8M8NmKaF0uzuOoXPWiPbDy0oQMImIg14e6W\nxQXbeeKeZAUmnEYXeaaedDe9kSzGbyk4uC7AsIxSKQMxaurrnTfeuSxOX6pB\nRmDRlCra4rzz3VBV9kmmq5hdTc11T1VKSrp7KVYeXD1nSRPQ5/MuaHdiQSIb\nRhaTUu9plCAKpDQl2VSl1bmQHDMpaEnFXQtDf6hT6JSaSRwG3sj/xpJ3pUI/\nw5o2ynM45Ml/uTiB1/xZj3gZXD7MTjPSquN1Jkywr9rbrxwg66H2/tkVxf2W\nJr1RqW6ACMGCKPa44Fny3M94sZUotUSb6DwFl9YGE7KfeMpzHCZS7vNZigfu\nzQ+lYBXSTuxLNQPWDB/r3GHEUEynfkYAeVQpQ72snVCPeIdZiuAN5jljDW0S\n28JQxmKQbtHD7zU+jdJPfTH+Ft5Nnd91ATic58LeYHpEeWr74lSMhK3/gzbV\n/DWVBG34jz9XH9PSBkemEn4HQ8UV9KXWyLKWuG/C6CjYa4z6WpF5Zjr7nziH\n6qrn\r\n=EkNY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGaqjh8DNntxo/YvymQBa7ztzKfIF27f2mLdcvQ19Ud5AiBPbZNpjFgbv21kYhDkMpwHjeCu++8nfZe7O+xXXdaEPA=="}]},"maintainers":[{"name":"brianmcallister","email":"brian@brianmcallister.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlight-text_2.0.1_1573922110822_0.7839684904436177"},"_hasShrinkwrap":false},"2.0.2":{"name":"@brianmcallister/highlight-text","version":"2.0.2","description":"Hightlight `words` in `text`","main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/brianmcallister/highlight-text.git"},"homepage":"https://highlight-text.netlify.com/","license":"MIT","author":{"name":"Brian Wm. McAllister","email":"brian@brianmcallister.com","url":"https://www.brianmcallister.com"},"keywords":["highlight","highlight-text","dom","string-manipulation","markup","text"],"scripts":{"build:types":"tsc --outdir dist","build":"npm run clean && npm run build:types && webpack && rimraf dist/*/__tests__","clean":"rimraf dist","lint":"eslint --cache --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore ./src ./demo","prepare":"npm run build","stylelint":"stylelint demo/**/*.scss","test":"jest","types":"tsc --noEmit"},"devDependencies":{"@babel/core":"7.7.2","@babel/preset-env":"7.7.1","@babel/preset-typescript":"7.7.2","@types/classnames":"2.2.9","@types/jest":"24.0.22","@types/node":"12.12.7","@typescript-eslint/eslint-plugin":"2.6.1","@typescript-eslint/parser":"2.6.1","babel-loader":"8.0.6","classnames":"2.2.6","eslint":"6.6.0","eslint-config-airbnb":"18.0.1","eslint-config-airbnb-typescript":"6.0.0","eslint-config-prettier":"6.5.0","eslint-plugin-eslint-comments":"3.1.2","eslint-plugin-import":"2.18.2","eslint-plugin-jest":"23.0.3","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-prettier":"3.1.1","eslint-plugin-promise":"4.2.1","eslint-plugin-react":"7.16.0","eslint-plugin-react-hooks":"2.2.0","eslint-plugin-unicorn":"13.0.0","jest":"^25.2.7","prettier":"1.19.1","stylelint":"11.1.1","stylelint-config-recommended":"3.0.0","stylelint-config-sass-guidelines":"6.1.0","stylelint-scss":"3.12.1","typescript":"3.7.2","webpack":"4.41.2","webpack-cli":"3.3.10"},"gitHead":"2169b44c8c865b3f410463446098847e85c4670d","bugs":{"url":"https://github.com/brianmcallister/highlight-text/issues"},"_id":"@brianmcallister/highlight-text@2.0.2","_nodeVersion":"12.13.1","_npmVersion":"6.13.6","dist":{"integrity":"sha512-ByyXqhs6Hoqhe7mIR7g41DoLQeBGiORFfPtEHar/qpa1d/HEXoBd6xurTfVRd7FTdneWXH8i1bkygL7tb0iiOw==","shasum":"13f6f6a9b3685aed0bee9a8eb9aa50abbca1983e","tarball":"https://registry.npmjs.org/@brianmcallister/highlight-text/-/highlight-text-2.0.2.tgz","fileCount":18,"unpackedSize":31280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeiTI+CRA9TVsSAnZWagAAeJEP/ituAbEDNOO++E8XwRTq\nDLGjtmfazgU3h85oABKy3epc+dv3FHdRLFf3v545dOdWBh+JSe4dCX+384TO\nOiwZ77N67bMsBugq7HrxBAvUIPXtv7XfoR97KovCTs2kIR8svAZX19VeoQ7n\njfGa07NG3UybHCysb/wGLGbIjqWAcEHXE+m8JiQlDh8C6AEED+j/6YkncMP8\n9/OCok78U1/4F8rrf0wVxvg0X4UTyqdeA0f4GMjHdZLZ7tM4vuzD7GphYwLn\nMf3zSZFSp3FlELpS1tC3r6xOJmb+n1gjqyW6IT+y3GC/cdf6bTi0axC4tN+o\nYa33034dnq1DANVR/TWZcenj16iGRm92dvFcF9kaCi53WxSECbB/c728DZKm\nZ65EK7wP95JLfoE7eus1FlFzKeWRnuO7qrHF7FRPtvshaA3iFLdjAuCSioHq\n59eGUoUXLuQ55V/56CXVSslHaj8H2g8M6HH3/yOgKjzU3Bru31XLtvv6FFZk\nTrFllpLYx3EK5aSJmYSgnkCe2gU2a/pdJLGlGs1ZFly+MPjE+gR1ojnwRe+o\nPpd9GBQ4LwBNXxaXHaUTmkiUlE5F5zTskglVA1BteiaxqA4PPnLlAvY1ukNq\n8h0qRiSoStVZTjZpl1CU0uWCtBGgTLRWiIDwfZgFHV5fl5b6CcBLHmT6fQfC\n79bb\r\n=2OMO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICYnpvrkdjBVEoiA9zFV5Xb8i3xPzmAnUJlxTIe5shXoAiBnSS9f188/xZjpiCe4jwuAw14tS9K3GRCYqdza3nFRiw=="}]},"maintainers":[{"name":"brianmcallister","email":"brian@brianmcallister.com"}],"_npmUser":{"name":"brianmcallister","email":"brian@brianmcallister.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlight-text_2.0.2_1586049598464_0.29755461287734586"},"_hasShrinkwrap":false},"2.0.3":{"name":"@brianmcallister/highlight-text","version":"2.0.3","description":"Hightlight `words` in `text`","main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/brianmcallister/highlight-text.git"},"homepage":"https://highlight-text.netlify.com/","license":"MIT","author":{"name":"Brian Wm. McAllister","email":"brian@brianmcallister.com","url":"https://www.brianmcallister.com"},"keywords":["highlight","highlight-text","dom","string-manipulation","markup","text"],"scripts":{"build:types":"tsc --outdir dist","build":"npm run clean && npm run build:types && webpack && rimraf dist/*/__tests__","clean":"rimraf dist","lint":"eslint --cache --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore ./src ./demo","prepare":"npm run build","stylelint":"stylelint demo/**/*.scss","test":"jest","types":"tsc --noEmit"},"devDependencies":{"@babel/core":"7.7.2","@babel/preset-env":"7.7.1","@babel/preset-typescript":"7.7.2","@types/classnames":"2.2.9","@types/jest":"24.0.22","@types/node":"12.12.7","@typescript-eslint/eslint-plugin":"2.6.1","@typescript-eslint/parser":"2.6.1","babel-loader":"8.0.6","classnames":"2.2.6","eslint":"6.6.0","eslint-config-airbnb":"18.0.1","eslint-config-airbnb-typescript":"6.0.0","eslint-config-prettier":"6.5.0","eslint-plugin-eslint-comments":"3.1.2","eslint-plugin-import":"2.18.2","eslint-plugin-jest":"23.0.3","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-prettier":"3.1.1","eslint-plugin-promise":"4.2.1","eslint-plugin-react":"7.16.0","eslint-plugin-react-hooks":"2.2.0","eslint-plugin-unicorn":"13.0.0","jest":"^25.2.7","prettier":"1.19.1","stylelint":"11.1.1","stylelint-config-recommended":"3.0.0","stylelint-config-sass-guidelines":"6.1.0","stylelint-scss":"3.12.1","typescript":"3.7.2","webpack":"4.41.2","webpack-cli":"3.3.10"},"gitHead":"b6fef0c6ecc4feb2f274be43c54826a44d35979a","bugs":{"url":"https://github.com/brianmcallister/highlight-text/issues"},"_id":"@brianmcallister/highlight-text@2.0.3","_nodeVersion":"12.13.1","_npmVersion":"6.13.6","dist":{"integrity":"sha512-rIncje1M+cpn1Lfu+dY9ewYa7xUFeo1PJcyCygoCCj8Q1ugvzLDCH/lnt5x9eS1BXe5XLaLWkZykBruXe4cwxA==","shasum":"505307b0ae57160a224045d96b8311a51b32c09f","tarball":"https://registry.npmjs.org/@brianmcallister/highlight-text/-/highlight-text-2.0.3.tgz","fileCount":18,"unpackedSize":31280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeiTKYCRA9TVsSAnZWagAAg5kP/ilJUrJNKn87I/NTVvVi\ntaS23RIqZ/0jyIA7veNA3PrD/N2d8cPL5Tb5pmyCaurs/iBIg+pJLFeR4GaF\nM4r+gvjB3Yb8w2MgtzYKWHY1VJM2NZnDUHkWRVeynbtW/NC5Vz3yq9jxeMH/\nyOktnzOeTYzKJvLpWI7h/bdacUaC0Lc4HZ+EdKBHLKzjMCnrxpn6GJXy7QmE\n360dRzY7wbP/hUD4QJV+sn58QLNKL8sl9fSK1pVKQ7qHescRqR9iys3Jqhe5\n5vKE1875TLWOOLy65n3Lhba2nkxt03vMQd8eSlJIYcIjvJSGwhHrUMNOIjAg\nsoqSY9nPvqrL9vd+DnsSesl+KJKi/p+qM937SWugi8MyHaMKcaSN2K/NdSvM\nYYIvsRyohncceW+AMLqhdQawq4r/oHA754YEAknqVS/NeVpoE5bQ5da71hAB\nkxZaoSrEo+tpjFmkyUAFc4JzvFparlPJRJqSJqAYa4a8sl7rbosI/lhD31oH\ne0UlwrJLSD/vxgetGPI0YpomBKepieJDJVfbGN23qqkFIUtnsIEGtEgzb6HH\n2GxjNKnM4iZ6F29J0A+CQrnAUlCy2KkXrNSx3HFy/fFiG6t8CiFqjSFKScMz\nE0Q/UYFUe2Xt/KZkvG73HMHu4g/HX+b5BFImuj7yfdjgQLNiEzTTZmuJ7Cwh\n8ACo\r\n=Tai3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsCmidygNHclE1S0yhwcSU4rk9H15FqYWTe0k+FTy/YAIgJJlMoDdGIdFGoNfUPWMSrQZ5HtqUMivL4Bq70N/IzTU="}]},"maintainers":[{"name":"brianmcallister","email":"brian@brianmcallister.com"}],"_npmUser":{"name":"brianmcallister","email":"brian@brianmcallister.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlight-text_2.0.3_1586049687602_0.38599735571309024"},"_hasShrinkwrap":false},"2.0.4":{"name":"@brianmcallister/highlight-text","version":"2.0.4","description":"Hightlight `words` in `text`","main":"dist/index.js","repository":{"type":"git","url":"git+https://github.com/brianmcallister/highlight-text.git"},"homepage":"https://highlight-text.netlify.com/","license":"MIT","author":{"name":"Brian Wm. McAllister","email":"brian@brianmcallister.com","url":"https://www.brianmcallister.com"},"keywords":["highlight","highlight-text","dom","string-manipulation","markup","text"],"scripts":{"build:browser":"webpack","build:ts":"tsc --outdir dist","build":"npm run clean && npm run build:ts && npm run build:browser","clean":"rimraf dist","lint":"eslint --cache --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore ./src ./demo","prepare":"npm run build","stylelint":"stylelint demo/**/*.scss","test":"jest","types":"tsc --noEmit"},"devDependencies":{"@babel/core":"7.12.10","@babel/preset-env":"7.12.11","@babel/preset-typescript":"7.12.7","@types/classnames":"2.2.11","@types/jest":"26.0.19","@types/node":"14.14.16","@typescript-eslint/eslint-plugin":"4.11.0","@typescript-eslint/parser":"4.11.0","babel-loader":"8.2.2","classnames":"2.2.6","eslint":"7.16.0","eslint-config-airbnb":"18.2.1","eslint-config-airbnb-typescript":"12.0.0","eslint-config-prettier":"7.1.0","eslint-plugin-eslint-comments":"3.2.0","eslint-plugin-import":"^2.22.1","eslint-plugin-jest":"24.1.3","eslint-plugin-jsx-a11y":"6.4.1","eslint-plugin-prettier":"3.3.0","eslint-plugin-promise":"4.2.1","eslint-plugin-react":"7.21.5","eslint-plugin-react-hooks":"4.2.0","eslint-plugin-unicorn":"24.0.0","jest":"^26.6.3","prettier":"2.2.1","stylelint":"13.8.0","stylelint-config-recommended":"3.0.0","stylelint-config-sass-guidelines":"7.1.0","stylelint-scss":"3.18.0","typescript":"4.1.3","webpack":"5.11.0","webpack-cli":"4.2.0"},"gitHead":"cc191342f602708585af2663904fb7a91b615956","bugs":{"url":"https://github.com/brianmcallister/highlight-text/issues"},"_id":"@brianmcallister/highlight-text@2.0.4","_nodeVersion":"12.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-bl2ZTKLu+VaqPIJMa5NF9vb7F0TPhrD9xuPdjLcwDO1aAhCnmxMVDJrKcm26T1rPlDQq6dB11AKuT5OVnWuejg==","shasum":"d642f275a6dba9ed24f8842bdd2c43221e28b0c4","tarball":"https://registry.npmjs.org/@brianmcallister/highlight-text/-/highlight-text-2.0.4.tgz","fileCount":18,"unpackedSize":35662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf5NCmCRA9TVsSAnZWagAAk78P/3U1JYOk+TJMH0vhg5vp\nP9DME/LwB/4VJOD8TPW97n3d77ItEiGg3kTxEurHRCVQc2u78RjcKn09r3Yg\nT6zeqcbwDpJeTcFNlRTlsVAFxOFmuNKDAv56Fv2m7kSy/4cfyY8PYYob0vCL\nKAQhrHQQ/1ccBCPMqjVGYcLDpTRaJ0LeBuLGlrsQYKSzuMgOCThzlPYS5TVE\nJ+g0mdN10PlhbsmYcv1R7sDaDjvDdRSoynCi3TICp3T8CinZHSVgouoPLeXo\nttoG70Z+ImNJehPXwZCjjS9ef9gzOlKnofLfxJlAqCl+Kw2V0G08k+Dh1+PP\nkjnuskStG4PRat+haz6v+L4I0I+mPsVWK9TLSNGSgAeeLnWWZdcMtxP4GqCI\npGS7/3hPwiA+LAPoevwPDqL61ewPivtv5C2hMF3gdh4oWQ6i9hYYTYd+xOku\nDVxJgNB+J9tjL/JC8ckEOuTDEjzr5WZv7L2K+wqFlHYNCXaSAwxCWpP8v9aJ\nzsyWip7hDLS6lqe/rRGurbAdWJmYUOoqwxFhyXHxI7raYnt5fLhRhKdDy/ym\nbWV+oXxp+gv5aibbkqArJjSwIVXjihXs9VIt0eHz09eUv33HwY1JJjWgeSi6\nj+mynktnYKQLSr3lh5TiXt0jUuxg5kBPz+CsATN7sKiyHDs0JP9UHzsaYN2t\nX3oM\r\n=+VtI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoYf9Cr4vYgBCZqsnRRyboQakkL+PRYB74uTFeGLK+3wIgf+kFGL62dEedsWa0yeGScXH8fhFdIh7cvD7o3rmTbj4="}]},"_npmUser":{"name":"brianmcallister","email":"brian@brianmcallister.com"},"directories":{},"maintainers":[{"name":"brianmcallister","email":"brian@brianmcallister.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/highlight-text_2.0.4_1608831142362_0.5283221737584347"},"_hasShrinkwrap":false}},"readme":"# @brianmcallister/highlight-text\n\n[![codecov](https://codecov.io/gh/brianmcallister/highlight-text/branch/master/graph/badge.svg)](https://codecov.io/gh/brianmcallister/highlight-text) [![CircleCI](https://circleci.com/gh/brianmcallister/highlight-text.svg?style=svg)](https://circleci.com/gh/brianmcallister/highlight-text) [![npm version](https://img.shields.io/npm/v/@brianmcallister/highlight-text?label=version&color=%2354C536&logo=npm)](https://www.npmjs.com/package/@brianmcallister/highlight-text)\n\n> Highlight `words` in some `text`\n\n`highlight-text` makes highlighting words and characters in a string quick and easy. This library is primarily used for adding a visual indicator to any text in a web page, much like the default search feature in your browser.\n\nThis is a great way to highlight search results collected from an input field within your application, or a range of possible use cases:\n\n- User configured search terms in a chat application\n- Administrator configured announcements\n- Visual design elements\n\nBy default, the library will accept a string and some sub strings to search for. It will return all of the found strings surrounded by [`<mark>` tags](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark), which can then be styled to match your branding. This is configurable, in case you want to use any arbitrary string or HTML tag.\n\n## Table of contents\n\n- [Demo](#demo)\n- [Installation](#installation)\n- [Usage](#usage)\n- [API](#api)\n\t- [`highlightText`](#highlighttext)\n\n## Demo\n\nHosted demo: [https://highlight-text.netlify.com/](https://highlight-text.netlify.com/)\n\nYou can also run the demo locally. To get started:\n\n```sh\ngit clone git@github.com:brianmcallister/highlight-text.git\ncd highlight-text/demo\nnpm i\nnpm start\n```\n\n###### [⇡ Top](#table-of-contents)\n\n## Installation\n\n```sh\nnpm install @brianmcallister/highlight-text\n```\n\n###### [⇡ Top](#table-of-contents)\n\n## Usage\n\n```js\nimport highlightText from '@brianmcallister/highlight-text';\n\nhighlightText('some text', ['om', 'ex']);\n// #=> 's<mark>om</mark>e t<mark>ex</mark>t'\n```\n\n###### [⇡ Top](#table-of-contents)\n\n## API\n\n### `highlightText`\n\nThis is the default export. Use this function to highlight words in text.\n\n```js\nhighlightText(text: string, words: string[]): string;\n```\n\n###### [⇡ Top](#table-of-contents)\n","maintainers":[{"name":"brianmcallister","email":"brian@brianmcallister.com"}],"time":{"modified":"2022-06-12T15:29:08.612Z","created":"2016-12-20T00:36:41.295Z","1.0.0":"2016-12-20T00:36:41.295Z","1.1.0":"2016-12-23T23:01:57.505Z","1.2.0":"2016-12-23T23:05:23.262Z","1.2.1":"2016-12-24T18:46:17.855Z","2.0.0-beta.0":"2019-11-07T17:49:22.425Z","2.0.0-beta.1":"2019-11-07T17:57:14.394Z","2.0.0-beta.2":"2019-11-07T18:01:55.203Z","2.0.0-beta.3":"2019-11-09T18:11:06.304Z","2.0.0":"2019-11-09T18:23:12.552Z","2.0.1":"2019-11-16T16:35:10.940Z","2.0.2":"2020-04-05T01:19:58.603Z","2.0.3":"2020-04-05T01:21:27.750Z","2.0.4":"2020-12-24T17:32:22.492Z"},"homepage":"https://highlight-text.netlify.com/","repository":{"type":"git","url":"git+https://github.com/brianmcallister/highlight-text.git"},"bugs":{"url":"https://github.com/brianmcallister/highlight-text/issues"},"license":"MIT","readmeFilename":"README.md","keywords":["highlight","highlight-text","dom","string-manipulation","markup","text"],"author":{"name":"Brian Wm. McAllister","email":"brian@brianmcallister.com","url":"https://www.brianmcallister.com"}}