{"_id":"highlight-words-core","_rev":"20-26e64ebd422ae7e28f9a656447fead22","name":"highlight-words-core","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"highlight-words-core","version":"1.0.0","keywords":["highlighter","highlight","text","words","matches","substring","occurrences","search"],"author":{"name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"license":"MIT","_id":"highlight-words-core@1.0.0","maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"}],"dist":{"shasum":"508ceccf1c7a511503b229acfc968340998a83e0","tarball":"https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.0.0.tgz","integrity":"sha512-FeJ0W78Tlt4WYcAol+YG5VisHRcZk79vFZaXJVLi8i6pwNwMUOnCy+Grq6k5f3V2xPSNqfV+Km7NrZC1UX3cuA==","signatures":[{"sig":"MEUCIQDnnRuVu3Be90pRlGcP4miOerEY3Ck4zZwn/f2oeJ8zCQIgRNyFGlqcvk3LhpUKb6n3ijBZfOaA8//S02ya8sI/Vqo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"508ceccf1c7a511503b229acfc968340998a83e0","gitHead":"dc57e74f22ac58a8d901f2c17351ab86ef24338f","scripts":{"lint":"standard","test":"mocha --compilers js:babel-register 'src/**/*.test.js'","build":"webpack --config webpack.config.dist.js --bail","prebuild":"rimraf dist"},"_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"standard":{"global":["afterAll","afterEach","beforeAll","beforeEach","describe","it"],"ignore":["build","dist","node_modules"],"parser":"babel-eslint"},"repository":{"url":"github.com/bvaughn/highlight-words-core.git","type":"git"},"_npmVersion":"3.10.3","description":"Utility functions shared by react-highlight-words and react-native-highlight-words","directories":{},"_nodeVersion":"6.5.0","dependencies":{"babel-runtime":"^6.11.6"},"devDependencies":{"mocha":"^3.0.2","watch":"^0.18.0","rimraf":"^2.4.3","webpack":"^1.9.6","standard":"^7.0.1","babel-cli":"6.8.0","cross-env":"^1.0.7","expect.js":"^0.3.1","babel-core":"^6.5.1","babel-eslint":"^6.0.4","babel-loader":"^6.2.3","babel-polyfill":"^6.5.0","babel-preset-es2015":"^6.14.0","babel-preset-stage-1":"^6.5.0","babel-plugin-typecheck":"^3.9.0","babel-preset-es2015-rollup":"^1.1.1","babel-plugin-transform-runtime":"^6.15.0"},"_npmOperationalInternal":{"tmp":"tmp/highlight-words-core-1.0.0.tgz_1474508589640_0.5033998547587544","host":"packages-16-east.internal.npmjs.com"}},"1.0.1":{"name":"highlight-words-core","version":"1.0.1","keywords":["highlighter","highlight","text","words","matches","substring","occurrences","search"],"author":{"name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"license":"MIT","_id":"highlight-words-core@1.0.1","maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"}],"dist":{"shasum":"cdf0a600a25c72c95d65a86fcd6924ed7e459c05","tarball":"https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.0.1.tgz","integrity":"sha512-bEZGP5lgI5WOOr4D8cbRmbhkxdija/n2cfR7m2Ln3R66Z2AIIP2g8fbVLN040IoIQnTsnoTSh88E1q73MwFiEQ==","signatures":[{"sig":"MEUCIQCEF2hfaVZMOluTB7Sqjr51d8Z6OOM3btHdeP1R0NWEOwIgZcfoxc7gDpsTmj52d0u1C7GDGcYQyznJ1YBiSl5Ls1A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"cdf0a600a25c72c95d65a86fcd6924ed7e459c05","gitHead":"54893283d79ac80bf4c7cff3b49a8d7eb706d71b","scripts":{"lint":"standard","test":"mocha --compilers js:babel-register 'src/**/*.test.js'","build":"webpack --config webpack.config.dist.js --bail","prebuild":"rimraf dist"},"_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"standard":{"global":["afterAll","afterEach","beforeAll","beforeEach","describe","it"],"ignore":["build","dist","node_modules"],"parser":"babel-eslint"},"repository":{"url":"github.com/bvaughn/highlight-words-core.git","type":"git"},"_npmVersion":"3.10.3","description":"Utility functions shared by react-highlight-words and react-native-highlight-words","directories":{},"_nodeVersion":"6.5.0","dependencies":{"babel-runtime":"^6.11.6"},"devDependencies":{"mocha":"^3.0.2","watch":"^0.18.0","rimraf":"^2.4.3","webpack":"^1.9.6","standard":"^7.0.1","babel-cli":"6.8.0","cross-env":"^1.0.7","expect.js":"^0.3.1","babel-core":"^6.5.1","babel-eslint":"^6.0.4","babel-loader":"^6.2.3","babel-polyfill":"^6.5.0","babel-preset-es2015":"^6.14.0","babel-preset-stage-1":"^6.5.0","babel-plugin-typecheck":"^3.9.0","babel-preset-es2015-rollup":"^1.1.1","babel-plugin-transform-runtime":"^6.15.0"},"_npmOperationalInternal":{"tmp":"tmp/highlight-words-core-1.0.1.tgz_1474508924680_0.5149156216066331","host":"packages-16-east.internal.npmjs.com"}},"1.0.2":{"name":"highlight-words-core","version":"1.0.2","keywords":["highlighter","highlight","text","words","matches","substring","occurrences","search"],"author":{"name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"license":"MIT","_id":"highlight-words-core@1.0.2","maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"}],"dist":{"shasum":"db2eaa52c8afc3056478a7c6f51858c5481e8ed6","tarball":"https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.0.2.tgz","integrity":"sha512-c688z5cniEnCwSxc3x7lVVN17tIpNcvqy2y1UqanakgrQfxCUz/qc5RalSiSaD/rfpyZOR80gPiAfKJabb+O3g==","signatures":[{"sig":"MEQCICe/pXOmOZ+bcWqYLd0iIrp1rWSsDtLaQtmkr+2myLXjAiBbSV3q6thRh8t4/lBgEFQydWRvAXEf990iKe1E/b87gg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"db2eaa52c8afc3056478a7c6f51858c5481e8ed6","gitHead":"8f62255065df91242062ed13f1040c90de4702f9","scripts":{"lint":"standard","test":"mocha --compilers js:babel-register 'src/**/*.test.js'","build":"webpack --config webpack.config.dist.js --bail","prebuild":"rimraf dist","prepublish":"npm run build"},"_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"standard":{"global":["afterAll","afterEach","beforeAll","beforeEach","describe","it"],"ignore":["build","dist","node_modules"],"parser":"babel-eslint"},"repository":{"url":"github.com/bvaughn/highlight-words-core.git","type":"git"},"_npmVersion":"3.10.3","description":"Utility functions shared by react-highlight-words and react-native-highlight-words","directories":{},"_nodeVersion":"6.5.0","dependencies":{"babel-runtime":"^6.11.6"},"devDependencies":{"mocha":"^3.0.2","watch":"^0.18.0","rimraf":"^2.4.3","webpack":"^1.9.6","latinize":"^0.3.0","standard":"^7.0.1","babel-cli":"6.8.0","cross-env":"^1.0.7","expect.js":"^0.3.1","babel-core":"^6.5.1","babel-eslint":"^6.0.4","babel-loader":"^6.2.3","babel-polyfill":"^6.5.0","babel-preset-es2015":"^6.14.0","babel-preset-stage-1":"^6.5.0","babel-plugin-typecheck":"^3.9.0","babel-preset-es2015-rollup":"^1.1.1","babel-plugin-transform-runtime":"^6.15.0"},"_npmOperationalInternal":{"tmp":"tmp/highlight-words-core-1.0.2.tgz_1474509491186_0.8488617793191224","host":"packages-12-west.internal.npmjs.com"}},"1.0.3":{"name":"highlight-words-core","version":"1.0.3","keywords":["highlighter","highlight","text","words","matches","substring","occurrences","search"],"author":{"name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"license":"MIT","_id":"highlight-words-core@1.0.3","maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"clauderic","email":"clauderic.d@gmail.com"}],"dist":{"shasum":"0886d0e757c8ca3928cbc873042bd544f8f6b2e5","tarball":"https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.0.3.tgz","integrity":"sha512-EGfP0i9OdMN85sYo4khA7ewBrdReHjgMS/75dj8ggw4VJq1AdSSxjsstKThRKG6Ang1arX91YZ2TpmsOoSixEA==","signatures":[{"sig":"MEUCIGUDzUIKg77kAGMrEx1zVGCflQLs7QUeu5OTsXzWlZq8AiEAx7yzLrnKmu1Esq1g6gYZhdoYW980Tcisnv4re7krDEY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","_from":".","_shasum":"0886d0e757c8ca3928cbc873042bd544f8f6b2e5","gitHead":"003b1511847544f8aa222e06cd9ef9165702ffd0","scripts":{"lint":"standard","test":"mocha --compilers js:babel-register 'src/**/*.test.js'","build":"webpack --config webpack.config.dist.js --bail","prebuild":"rimraf dist","prepublish":"npm run build"},"_npmUser":{"name":"clauderic","email":"clauderic.d@gmail.com"},"standard":{"global":["afterAll","afterEach","beforeAll","beforeEach","describe","it"],"ignore":["build","dist","node_modules"],"parser":"babel-eslint"},"repository":{"url":"github.com/bvaughn/highlight-words-core.git","type":"git"},"_npmVersion":"2.14.7","description":"Utility functions shared by react-highlight-words and react-native-highlight-words","directories":{},"_nodeVersion":"4.2.1","dependencies":{"babel-runtime":"^6.11.6"},"devDependencies":{"mocha":"^3.0.2","watch":"^0.18.0","rimraf":"^2.4.3","webpack":"^1.9.6","latinize":"^0.3.0","standard":"^7.0.1","babel-cli":"6.8.0","cross-env":"^1.0.7","expect.js":"^0.3.1","babel-core":"^6.5.1","babel-eslint":"^6.0.4","babel-loader":"^6.2.3","babel-polyfill":"^6.5.0","babel-preset-es2015":"^6.14.0","babel-preset-stage-1":"^6.5.0","babel-plugin-typecheck":"^3.9.0","babel-preset-es2015-rollup":"^1.1.1","babel-plugin-transform-runtime":"^6.15.0"},"_npmOperationalInternal":{"tmp":"tmp/highlight-words-core-1.0.3.tgz_1474512173009_0.6548904646188021","host":"packages-12-west.internal.npmjs.com"}},"1.1.0":{"name":"highlight-words-core","version":"1.1.0","keywords":["highlighter","highlight","text","words","matches","substring","occurrences","search"],"author":{"name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"license":"MIT","_id":"highlight-words-core@1.1.0","maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"clauderic","email":"clauderic.d@gmail.com"}],"dist":{"shasum":"6ca35f256b1be72857963eafe97c255a2168c7ff","tarball":"https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.1.0.tgz","integrity":"sha512-/GR0sXzYEruxAgsOWQ146T1zEzCd1tiuoH+HuoQX7bonujTkz9/9stWu9yxgu93AiNPWuukE2rb/iLEkLSYROw==","signatures":[{"sig":"MEUCIFhiZ+wP6IKPTAHNPmyI/dpY5L30SX0YYOlxFVDMwTTQAiEA765eC9WBIStDDNxYUhIOszZUTjLXoPrRQabcOCxhfow=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","gitHead":"08fe9dafa000473b39da188de7e49bd71506f4a1","scripts":{"lint":"standard","test":"mocha --compilers js:babel-register 'src/**/*.test.js'","build":"webpack --config webpack.config.dist.js --bail","prebuild":"rimraf dist","prepublish":"npm run build"},"_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"standard":{"global":["afterAll","afterEach","beforeAll","beforeEach","describe","it"],"ignore":["build","dist","node_modules"],"parser":"babel-eslint"},"repository":{"url":"github.com/bvaughn/highlight-words-core.git","type":"git"},"_npmVersion":"5.3.0","description":"Utility functions shared by react-highlight-words and react-native-highlight-words","directories":{},"_nodeVersion":"8.4.0","dependencies":{"babel-runtime":"^6.11.6"},"devDependencies":{"mocha":"^3.0.2","watch":"^0.18.0","rimraf":"^2.4.3","webpack":"^1.9.6","latinize":"^0.3.0","standard":"^7.0.1","babel-cli":"6.8.0","cross-env":"^1.0.7","expect.js":"^0.3.1","babel-core":"^6.5.1","babel-eslint":"^6.0.4","babel-loader":"^6.2.3","babel-polyfill":"^6.5.0","babel-preset-es2015":"^6.14.0","babel-preset-stage-1":"^6.5.0","babel-plugin-typecheck":"^3.9.0","babel-preset-es2015-rollup":"^1.1.1","babel-plugin-transform-runtime":"^6.15.0"},"_npmOperationalInternal":{"tmp":"tmp/highlight-words-core-1.1.0.tgz_1508080032177_0.3276205437723547","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"highlight-words-core","version":"1.1.1","keywords":["highlighter","highlight","text","words","matches","substring","occurrences","search"],"author":{"name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"license":"MIT","_id":"highlight-words-core@1.1.1","maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"clauderic","email":"clauderic.d@gmail.com"}],"dist":{"shasum":"77a23bbbe380c285044e05d4c03bac22c43c1ee7","tarball":"https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.1.1.tgz","integrity":"sha512-Wer/lTR3aGswnBKhfZtayQ6Yv044yXosw3nVhnRLOEV5JQ6LKmJIDaicqOqunTQVkLgB72xqvTNRhtX343mZBw==","signatures":[{"sig":"MEQCICZi0FDUTC6qhj9ldulk0TGmfZUh5uxpMZhSCXLOEsohAiAGPLRU78y5YP4zeB6Te1GSXexxERxpxhV01atVdma7Xg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","gitHead":"54216d41e5cf6eef84a00a505fc42847d46ed8e0","scripts":{"lint":"standard","test":"mocha --compilers js:babel-register \"src/**/*.test.js\"","build":"webpack --config webpack.config.dist.js --bail","prebuild":"rimraf dist","prepublish":"npm run build"},"_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"standard":{"global":["afterAll","afterEach","beforeAll","beforeEach","describe","it"],"ignore":["build","dist","node_modules"],"parser":"babel-eslint"},"repository":{"url":"github.com/bvaughn/highlight-words-core.git","type":"git"},"_npmVersion":"5.3.0","description":"Utility functions shared by react-highlight-words and react-native-highlight-words","directories":{},"_nodeVersion":"8.4.0","dependencies":{"babel-runtime":"^6.11.6"},"devDependencies":{"mocha":"^3.0.2","watch":"^0.18.0","rimraf":"^2.4.3","webpack":"^1.9.6","latinize":"^0.3.0","standard":"^7.0.1","babel-cli":"6.8.0","cross-env":"^1.0.7","expect.js":"^0.3.1","babel-core":"^6.5.1","babel-eslint":"^6.0.4","babel-loader":"^6.2.3","babel-polyfill":"^6.5.0","babel-preset-es2015":"^6.14.0","babel-preset-stage-1":"^6.5.0","babel-plugin-typecheck":"^3.9.0","babel-preset-es2015-rollup":"^1.1.1","babel-plugin-transform-runtime":"^6.15.0"},"_npmOperationalInternal":{"tmp":"tmp/highlight-words-core-1.1.1.tgz_1513142018231_0.12401664862409234","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"highlight-words-core","version":"1.1.2","keywords":["highlighter","highlight","text","words","matches","substring","occurrences","search"],"author":{"name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"license":"MIT","_id":"highlight-words-core@1.1.2","maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"clauderic","email":"clauderic.d@gmail.com"}],"dist":{"shasum":"5c2717c4f6c6e7ea2462ab85b43ff8b24f58ec3e","tarball":"https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.1.2.tgz","integrity":"sha512-iBKBNeN/kH/D67j/Gouuz4Ev1TMAziwd8f9JE2EbtmhyBtk96Ij/9MS/ZEfv7sRf6TsKcle86GP0Oruh2uE9Nw==","signatures":[{"sig":"MEUCIQDyfgzfph3bgAyvo5EaJyvrGDTSElRv766GJAR3j/p8eAIgBZQVQ84O//OqnNbFGHHNvdmjsPAydSfHyGLJr112CYw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/index.js","gitHead":"f4c43dc71a40fe86989473742c230627c3e4871a","scripts":{"lint":"standard","test":"mocha --compilers js:babel-register \"src/**/*.test.js\"","build":"webpack --config webpack.config.dist.js --bail","prebuild":"rimraf dist","prepublish":"npm run build"},"_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"standard":{"global":["afterAll","afterEach","beforeAll","beforeEach","describe","it"],"ignore":["build","dist","node_modules"],"parser":"babel-eslint"},"repository":{"url":"github.com/bvaughn/highlight-words-core.git","type":"git"},"_npmVersion":"5.3.0","description":"Utility functions shared by react-highlight-words and react-native-highlight-words","directories":{},"_nodeVersion":"8.4.0","devDependencies":{"mocha":"^3.0.2","rimraf":"^2.4.3","webpack":"^1.9.6","latinize":"^0.3.0","standard":"^7.0.1","babel-cli":"6.8.0","cross-env":"^1.0.7","expect.js":"^0.3.1","babel-core":"^6.5.1","babel-eslint":"^6.0.4","babel-loader":"^6.2.3","babel-preset-es2015":"^6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/highlight-words-core-1.1.2.tgz_1513142992691_0.43746759137138724","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"highlight-words-core","version":"1.2.0","keywords":["highlighter","highlight","text","words","matches","substring","occurrences","search"],"author":{"name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"license":"MIT","_id":"highlight-words-core@1.2.0","maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"clauderic","email":"clauderic.d@gmail.com"}],"dist":{"shasum":"232bec301cbf2a4943d335dc748ce70e9024f3b1","tarball":"https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.2.0.tgz","fileCount":9,"integrity":"sha512-nu5bMsWIgpsrlXEMNKSvbJMeUPhFxCOVT28DnI8UCVfhm3e98LC8oeyMNrc7E18+QQ4l/PvbeN7ojyN4XsmBdA==","signatures":[{"sig":"MEUCID03cNoF12hcEE9kSGkAnBcg7LP+l/xlZQZABnHU6yc+AiEAw4PwsLTJ2vMLpYzLGqIVzZjJ5BDGbQaALLGFKOCgdqo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":132072},"main":"dist/index.js","gitHead":"7995e9af288c33118537a6344bbacd9ae7f13d11","scripts":{"lint":"standard","test":"mocha --compilers js:babel-register \"src/**/*.test.js\"","build":"webpack --config webpack.config.dist.js --bail","prebuild":"rimraf dist","prepublish":"npm run build"},"_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"standard":{"global":["afterAll","afterEach","beforeAll","beforeEach","describe","it"],"ignore":["build","dist","node_modules"],"parser":"babel-eslint"},"repository":{"url":"github.com/bvaughn/highlight-words-core.git","type":"git"},"_npmVersion":"5.3.0","description":"Utility functions shared by react-highlight-words and react-native-highlight-words","directories":{},"_nodeVersion":"8.4.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^3.0.2","rimraf":"^2.4.3","webpack":"^1.9.6","latinize":"^0.3.0","standard":"^7.0.1","babel-cli":"6.8.0","cross-env":"^1.0.7","expect.js":"^0.3.1","babel-core":"^6.5.1","babel-eslint":"^6.0.4","babel-loader":"^6.2.3","babel-preset-es2015":"^6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/highlight-words-core_1.2.0_1519058164974_0.9796598767191198","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"highlight-words-core","version":"1.2.1","keywords":["highlighter","highlight","text","words","matches","substring","occurrences","search"],"author":{"name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"license":"MIT","_id":"highlight-words-core@1.2.1","maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"clauderic","email":"clauderic.d@gmail.com"}],"dist":{"shasum":"623830004c93f3731e108dfd8a5d3d9b7e6c01f4","tarball":"https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.2.1.tgz","fileCount":9,"integrity":"sha512-iJVOcqPbHNf2VFhAgrKCQ8g7BMUK53BqIZX8NmvMsGeEMRCcrJxbbWJrFvEApJ8vlirz2dMbwcxQhhLJebb/zw==","signatures":[{"sig":"MEYCIQDwSf3M/JgGwHkkYuAMyYF+5WuLvQ7J9gSl2HoXIyhZyQIhAOAFOcl3dKGuixdqLXPB1h0Lmmc3KGLHQA5JpQXqWu9s","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6GQZCRA9TVsSAnZWagAAL9kP/1Rd9FsgzKfRtjfNJb6l\nW8N9eqY0/aVfbuFg3F4XAuESjEmUft/Cg0CdA14Ot+d6tr6aI2FK7vVtd6qp\nSPu46Gji1mU7nwMXD7dNr4690mVf08XlVdcndXlU+XI6QmxiiR78TVUBom1x\nQeUryBldzIXag2iezWPOKBNxvhHgW7XL5vzsnIyW+CAruAi/pvTNo2b9dUO4\nFRxGtIHLuDh9ZNC26k9cYIzpNj2YNs1RxjyaaDfP3Qb0Gn4bV3s7A48QMx8Q\n2ak+zIwB5ZvJh2XLSY3jUCvbKrWeRSE6j0mu4Tx92WmfZ3Dh/yse7p+AxWJQ\n5pQ6gUIDnsnR4eCdxQRsEvw5XKZY0H9vjFVOlE16KC+w2pFk9Fq3hBU8Of6U\nW7HfG1ZM8kGzK+VDxH8tVUW6MJcxL1c7F1NdU4264r9oFHRx7a8BgLe/0L3M\nGGpXQbRY3XWZZRZCF09awLPKBMb2e77GhL6OdgbSKUU77U3+r586APvMYlzR\n48mhBn4K3vsoieYeI9+oRIWXBlj6bvDDM3CtfmaNnx2VLiiggPwuCVI8OMlc\ne9djRSapWyXr4EYrHTgLIKzYf/Bz6LusOyUKlpYuTDcXHZgNORBZg9vpn7zs\ni1k1e7unPxe9k38y5UNuZcw+nCYBCZgIWeE/Wl3iitKrSOK/3xm6fK2e4ruZ\njZ2m\r\n=zYUQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"c2b1faa922903eb9a95b1bb02f8514c019f4f4f2","scripts":{"lint":"standard","test":"mocha --compilers js:babel-register \"src/**/*.test.js\"","build":"yarn build:source && yarn build:flow","prebuild":"rimraf dist","build:flow":"cp flow-template dist/index.js.flow","prepublish":"npm run build","build:source":"webpack --config webpack.config.dist.js --bail"},"_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"standard":{"global":["afterAll","afterEach","beforeAll","beforeEach","describe","it"],"ignore":["build","dist","node_modules"],"parser":"babel-eslint"},"repository":{"url":"github.com/bvaughn/highlight-words-core.git","type":"git"},"_npmVersion":"6.4.1","description":"Utility functions shared by react-highlight-words and react-native-highlight-words","directories":{},"_nodeVersion":"10.12.0","dependencies":{"babel-preset-flow":"^6"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^3.0.2","rimraf":"^2.4.3","webpack":"^1.9.6","latinize":"^0.3.0","standard":"^7.0.1","babel-cli":"6.8.0","cross-env":"^1.0.7","expect.js":"^0.3.1","babel-core":"^6.5.1","babel-eslint":"^6.0.4","babel-loader":"^6.2.3","babel-preset-es2015":"^6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/highlight-words-core_1.2.1_1541956633046_0.4267505777558953","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"highlight-words-core","version":"1.2.2","keywords":["highlighter","highlight","text","words","matches","substring","occurrences","search"],"author":{"name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"license":"MIT","_id":"highlight-words-core@1.2.2","maintainers":[{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"clauderic","email":"clauderic.d@gmail.com"},{"name":"ryanflorence","email":"rpflorence@gmail.com"}],"dist":{"shasum":"1eff6d7d9f0a22f155042a00791237791b1eeaaa","tarball":"https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.2.2.tgz","fileCount":9,"integrity":"sha512-BXUKIkUuh6cmmxzi5OIbUJxrG8OAk2MqoL1DtO3Wo9D2faJg2ph5ntyuQeLqaHJmzER6H5tllCDA9ZnNe9BVGg==","signatures":[{"sig":"MEQCIGJkaMORdPA0DdoMRAXKZnU/czxisDSx+xb5Z/PCy6v5AiAA+8yPVzEpVJTOfTYQtCaYpUYrtjMsw6o5JfzRMl4lFA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6Z3uCRA9TVsSAnZWagAAGkMP/2JdtNlvQpcXcgsLg6kC\nA0lGiehJGVOK/F2ROxpbb19nJhwuTCX1q9Mv6T70RQOpnPLxHTE23dzVEMAv\nGvO6bfYUnJuqBvlPhCWE8vJWh18cbYrtsQsVsAMPkoczHSi5fbEjqvqZE48p\no80JsgjJg3SxCsOxUktlrjHdFhGcr1jmfr2nBMG0o5/TqWykMDlWv4//d/A7\n8OIGHwdPNA9fMcQGQAFjZfL0dDgzNSbMoKnkg4ZN4GpAUSHOa44hi3tGCBTE\nVEfLkWrHOSJJANo7kCJ0RZiIVgTlZUtLXdXuQ6nx87StRxl0jNNqsvljF7eH\nRJIb9aIlFAVCfeTF12BwH0SWUfqw9vrVjO1BcACHJOS5gJeYemqNns8OfpUJ\nRwCwfuSoEeCQlbDdnDtq/QZuoe5GF2e4U+TtfHR5xePViOSQNdJo6uA2KxRM\njsz+1QIeyBsCYAcz+xgWXqLeITyD58hVitW3K4+uz73QjFobD9TBq3SoPhui\nuwH3PP6uo7sSDOqFnh9QRAtdy7G/xvAB8XYuNQeL6RV3wQCyurtGDBRcLX1I\nAuSrWgqUPKd20Vgf9w5ixQMYkNAfmDedywfxspr5mmYMPiqxxV1IgsIlTr5R\nzgVsGgstMTVS1EJ+9UCV/eenJMib6VNAQcvVUZAx7Gd09gjkibZHUxpi36Bl\n2foD\r\n=ka/x\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","gitHead":"ab3abe11ed118d0cee18786395300a6f5290dcb9","scripts":{"lint":"standard","test":"mocha --compilers js:babel-register \"src/**/*.test.js\"","build":"yarn build:source && yarn build:flow","prebuild":"rimraf dist","build:flow":"cp flow-template dist/index.js.flow","prepublish":"npm run build","build:source":"webpack --config webpack.config.dist.js --bail"},"_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"standard":{"global":["afterAll","afterEach","beforeAll","beforeEach","describe","it"],"ignore":["build","dist","node_modules"],"parser":"babel-eslint"},"repository":{"url":"github.com/bvaughn/highlight-words-core.git","type":"git"},"_npmVersion":"6.4.1","description":"Utility functions shared by react-highlight-words and react-native-highlight-words","directories":{},"_nodeVersion":"10.12.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^3.0.2","rimraf":"^2.4.3","webpack":"^1.9.6","latinize":"^0.3.0","standard":"^7.0.1","babel-cli":"6.8.0","cross-env":"^1.0.7","expect.js":"^0.3.1","babel-core":"^6.5.1","babel-eslint":"^6.0.4","babel-loader":"^6.2.3","babel-preset-flow":"^6","babel-preset-es2015":"^6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/highlight-words-core_1.2.2_1542036974090_0.06718657030282671","host":"s3://npm-registry-packages"}},"1.2.3":{"name":"highlight-words-core","version":"1.2.3","keywords":["highlighter","highlight","text","words","matches","substring","occurrences","search"],"author":{"name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"license":"MIT","_id":"highlight-words-core@1.2.3","maintainers":[{"name":"ryanflorence","email":"rpflorence@gmail.com"},{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"clauderic","email":"clauderic.d@gmail.com"}],"dist":{"shasum":"781f37b2a220bf998114e4ef8c8cb6c7a4802ea8","tarball":"https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-1.2.3.tgz","fileCount":9,"integrity":"sha512-m1O9HW3/GNHxzSIXWw1wCNXXsgLlxrP0OI6+ycGUhiUHkikqW3OrwVHz+lxeNBe5yqLESdIcj8PowHQ2zLvUvQ==","signatures":[{"sig":"MEYCIQD4ZTZF4y8l4mNjQfWcZCv6NTcFKCBNNQt3JDdGHnuWXwIhAO32iFe43icy63qykcmfDSj6ZUvIb4nCKveFblMeKYyz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31469},"main":"dist/index.js","gitHead":"6d953dfb9f004e4aa25f5ab55a4583cc14cb1c21","scripts":{"lint":"standard","test":"mocha --compilers js:babel-register \"src/**/*.test.js\"","build":"yarn build:source && yarn build:flow","prebuild":"rimraf dist","build:flow":"cp flow-template dist/index.js.flow","prepublish":"npm run build","build:source":"webpack --config webpack.config.dist.js --bail"},"_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"standard":{"global":["afterAll","afterEach","beforeAll","beforeEach","describe","it"],"ignore":["build","dist","node_modules"],"parser":"babel-eslint"},"repository":{"url":"github.com/bvaughn/highlight-words-core.git","type":"git"},"_npmVersion":"9.6.6","description":"Utility functions shared by react-highlight-words and react-native-highlight-words","directories":{},"_nodeVersion":"20.2.0","_hasShrinkwrap":false,"devDependencies":{"mocha":"^3.0.2","rimraf":"^2.4.3","webpack":"^1.9.6","latinize":"^0.3.0","standard":"^7.0.1","babel-cli":"6.8.0","cross-env":"^1.0.7","expect.js":"^0.3.1","babel-core":"^6.5.1","babel-eslint":"^6.0.4","babel-loader":"^6.2.3","babel-preset-flow":"^6","babel-preset-es2015":"^6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/highlight-words-core_1.2.3_1727531054457_0.31203951477115077","host":"s3://npm-registry-packages"}},"2.0.0":{"_id":"highlight-words-core@2.0.0","bugs":{"url":"https://github.com/bvaughn/highlight-words-core/issues"},"dist":{"shasum":"5f44b03e47a5c38f933b07d707b542418e53b9f5","tarball":"https://registry.npmjs.org/highlight-words-core/-/highlight-words-core-2.0.0.tgz","fileCount":9,"integrity":"sha512-dKFj8EZQ8yvU9b/88WGZGwsFC0wmKk5wEVOL4D4POzASma8Gct9LvWax6gPpIzBIF+z8N0si3t1mxyYxOHmjhw==","signatures":[{"sig":"MEUCICDQMx3RYqhsqxGbi1GK6HW6t9L0e6u4ZZkCeK0jcRWcAiEAjzfJ5xtdIgDbY7et79FG+iDHPkhkzEblPzaM7WWykzs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCgVsN9um1nQ1wpSlXQttUytyw5cs845yjvMKwXt7lLlwIgIHZjA93FDAH9amkaD6qyF2bXoeu3+K9YbZD3iGgJKiY="}],"unpackedSize":68585},"main":"dist/highlight-words-core.cjs","name":"highlight-words-core","type":"module","types":"dist/highlight-words-core.d.ts","author":{"name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"module":"dist/highlight-words-core.js","exports":{".":{"import":{"types":"./dist/highlight-words-core.d.ts","default":"./dist/highlight-words-core.js"},"require":{"types":"./dist/highlight-words-core.d.cts","default":"./dist/highlight-words-core.cjs"}},"./package.json":"./package.json"},"gitHead":"86979e99cb6588b1cecdaaf332ae091dcad3e726","license":"MIT","scripts":{"tsc":"tsc -b","lint":"eslint .","test":"vitest","build":"vite build","test:ci":"vitest run","prettier":"prettier --write \"**/*.{js,json,ts}\"","prerelease":"rm -rf dist && pnpm run build","test:debug":"vitest --inspect-brk=127.0.0.1:3000 --no-file-parallelism","prettier:ci":"prettier --check \"**/*.{js,json,ts}\""},"version":"2.0.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"homepage":"https://github.com/bvaughn/highlight-words-core#readme","keywords":["highlighter","highlight","text","words","matches","substring","occurrences","search"],"repository":{"url":"git+https://github.com/bvaughn/highlight-words-core.git","type":"git"},"_npmVersion":"11.4.2","description":"Utility functions shared by react-highlight-words and react-native-highlight-words","directories":{},"maintainers":[{"name":"ryanflorence","email":"rpflorence@gmail.com"},{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"clauderic","email":"clauderic.d@gmail.com"}],"sideEffects":false,"_nodeVersion":"24.3.0","_hasShrinkwrap":false,"devDependencies":{"vite":"^7.0.4","eslint":"^9.30.1","vitest":"^3.2.4","globals":"^16.3.0","latinize":"^2.0.0","prettier":"3.6.2","@eslint/js":"^9.30.1","typescript":"~5.8.3","@types/node":"^24.2.0","@types/latinize":"^0.2.18","vite-plugin-dts":"^4.5.4","typescript-eslint":"^8.35.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/highlight-words-core_2.0.0_1791743978141_0.10000791620697358"}}},"time":{"created":"2016-09-22T01:43:11.463Z","modified":"2026-10-11T18:39:38.399Z","1.0.0":"2016-09-22T01:43:11.463Z","1.0.1":"2016-09-22T01:48:46.671Z","1.0.2":"2016-09-22T01:58:11.429Z","1.0.3":"2016-09-22T02:42:53.254Z","1.1.0":"2017-10-15T15:07:12.243Z","1.1.1":"2017-12-13T05:13:38.401Z","1.1.2":"2017-12-13T05:29:52.807Z","1.2.0":"2018-02-19T16:36:05.365Z","1.2.1":"2018-11-11T17:17:13.178Z","1.2.2":"2018-11-12T15:36:14.298Z","1.2.3":"2024-09-28T13:44:14.659Z","2.0.0":"2026-10-11T18:39:38.219Z"},"author":{"name":"Brian Vaughn","email":"brian.david.vaughn@gmail.com"},"license":"MIT","keywords":["highlighter","highlight","text","words","matches","substring","occurrences","search"],"repository":{"url":"git+https://github.com/bvaughn/highlight-words-core.git","type":"git"},"description":"Utility functions shared by react-highlight-words and react-native-highlight-words","maintainers":[{"name":"ryanflorence","email":"rpflorence@gmail.com"},{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},{"name":"clauderic","email":"clauderic.d@gmail.com"}],"readme":"Utility functions shared by [`react-highlight-words`](https://github.com/bvaughn/react-highlight-words) and [`react-native-highlight-words`](https://github.com/clauderic/react-native-highlight-words).\n\n---\n### 🎉 [Become a sponsor](https://github.com/sponsors/bvaughn/) or ☕ [Buy me a coffee](http://givebrian.coffee/)\n---\n\n## Installation\n\n```sh\nnpm install highlight-words-core\n```\n\nUpgrading from 1.x? See the [changelog](./CHANGELOG.md) for breaking changes.\n\n## API\n\nThe primary API for this package is a function exported as `findAll`. This method searches a string of text for a set of search terms and returns an array of \"chunks\" that describe the matches found.\n\nEach \"chunk\" is an object consisting of a pair of indices (`chunk.start` and `chunk.end`) and a boolean specifying whether the chunk is a match (`chunk.highlight`). Highlighted chunks also include the index of the search word that matched them (`chunk.searchIndex`). For example:\n\n```js\nimport { findAll } from \"highlight-words-core\";\n\nconst textToHighlight = \"This is some text to highlight.\";\nconst searchWords = [\"This\", \"i\"];\n\nconst chunks = findAll({\n  searchWords,\n  textToHighlight\n});\n\n// ⚠️ Escape the text before inserting it into HTML\nconst escapeHTML = (text) =>\n  text.replace(/&/g, \"&amp;\").replace(/</g, \"&lt;\").replace(/>/g, \"&gt;\");\n\nconst highlightedHTML = chunks\n  .map(({ end, highlight, start }) => {\n    const text = escapeHTML(textToHighlight.substring(start, end));\n    return highlight ? `<mark>${text}</mark>` : text;\n  })\n  .join(\"\");\n```\n\n### `findAll`\n\nSearches text for a set of search words and splits it into chunks, covering the entire text in order, each of which is either highlighted (a match) or not. Overlapping matches are combined into a single highlighted chunk; adjacent matches are kept separate.\n\nOnly the `searchWords` array and `textToHighlight` string are required.\n\n| Parameter | Required? | Type | Description |\n| --- | :---: | --- | --- |\n| autoEscape |  | `boolean` | Match string search words literally (defaults to `true`); set to `false` to treat them as regular expressions (see [Regular expressions](#regular-expressions)) |\n| caseSensitive |  | `boolean` | Match string search words case sensitively (defaults to `false`); RegExp search words use their own `i` flag |\n| findChunks |  | `Function` | Custom search function (see [Custom `findChunks`](#custom-findchunks)) |\n| sanitize |  | `Function` | Process the text and string search words before comparing them, e.g. to remove accents (see [Sanitizing](#sanitizing)) |\n| searchWords | ✅ | `ReadonlyArray<string \\| RegExp>` | Words to search for; empty strings are ignored |\n| textToHighlight | ✅ | `string` | Text to search and highlight |\n\nIt returns an array of `Chunk` objects:\n\n```ts\ntype Chunk = HighlightedChunk | NonHighlightedChunk;\n\ntype HighlightedChunk = {\n  highlight: true; // This chunk matched a search word\n  start: number; // Index of the first character (inclusive)\n  end: number; // Index after the last character (exclusive)\n  searchIndex: number; // Index (within searchWords) of the matching word\n};\n\ntype NonHighlightedChunk = {\n  highlight: false; // This chunk is text between matches\n  start: number;\n  end: number;\n};\n```\n\nIn TypeScript, check `chunk.highlight` before reading `chunk.searchIndex`.\n\nWhen overlapping matches are combined, the chunk keeps the `searchIndex` of the match that starts first (or, if several start at the same index, the longest of them).\n\n#### Regular expressions\n\nBy default, string search words are matched literally. To match a pattern, pass a `RegExp` search word (which is used as-is, with its own flags), or set `autoEscape` to `false` to treat every string search word as a regular expression. Strings that aren't valid regular expressions are then matched literally.\n\nString search words are compiled with the `g` flag (plus `i`, unless `caseSensitive` is set), never `u` or `v`, so syntax that requires those flags (such as `\\p{L}`) only works in `RegExp` search words.\n\n> [!WARNING]\n> Only set `autoEscape` to `false` for trusted search words. A malicious regular expression, such as `(a+)+$`, can take an extremely long time to run ([ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)), so text typed by users should be matched literally.\n\n#### Sanitizing\n\nA `sanitize` function (e.g. [`latinize`](https://www.npmjs.com/package/latinize)) can be used to ignore differences such as accents. It is applied to the text and to each string search word. Matches always refer to the original text, even if sanitizing changes its length (e.g. `\"Æ\"` to `\"AE\"`).\n\n- Sanitizing should transform characters independently; if it changes the text, it is applied to each character separately.\n- RegExp search words are not sanitized, but they are matched against the sanitized text (e.g. `/é/` won't match anything if the sanitize function removes accents).\n\n#### Custom `findChunks`\n\nThe `findChunks` parameter replaces the default search logic. It receives the other parameters (with defaults applied) and returns an array of `{ start, end, searchIndex }` objects for the ranges to highlight, where `searchIndex` is the index (within `searchWords`) of the search word that matched. These may be in any order, may overlap, and may extend outside of the text; `findAll` sorts, combines, and clamps them.\n\nA custom function replaces all of the default matching behavior, so it is responsible for respecting the `autoEscape`, `caseSensitive`, and `sanitize` options (and any RegExp search words) if it needs to. The example below ignores them.\n\n```js\nconst escapeRegExp = (string) => string.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n\n// Only highlight whole words (assumes string search words)\nconst findWholeWords = ({ searchWords, textToHighlight }) =>\n  searchWords.flatMap((searchWord, searchIndex) => {\n    const chunks = [];\n    if (!searchWord) {\n      return chunks;\n    }\n    const regex = new RegExp(`\\\\b${escapeRegExp(searchWord)}\\\\b`, \"gi\");\n    let match;\n    while ((match = regex.exec(textToHighlight))) {\n      chunks.push({ start: match.index, end: regex.lastIndex, searchIndex });\n    }\n    return chunks;\n  });\n\nfindAll({ findChunks: findWholeWords, searchWords, textToHighlight });\n```\n\n### Lower-level functions\n\n`findAll` is built from the following functions, which are also exported:\n\n| Function | Description |\n| --- | --- |\n| `findChunks(options)` | The default search function; returns one `{ start, end, searchIndex }` object per match (unsorted, and possibly overlapping). Accepts the same options as `findAll`, except for `findChunks`. |\n| `combineChunks({ chunks })` | Sorts chunks and combines any that overlap. Returns new objects; the chunks passed in are not modified. |\n| `fillInChunks({ chunksToHighlight, totalLength })` | Given sorted, non-overlapping chunks to highlight, adds non-highlighted chunks between them so that together they cover the entire text. |\n\nThe `Chunk`, `HighlightedChunk`, `NonHighlightedChunk`, `FoundChunk`, and `FindChunksOptions` TypeScript types are also exported.\n\n## Development\n\n```sh\npnpm install\npnpm test      # Run tests (Vitest)\npnpm tsc       # Type check\npnpm lint      # ESLint\npnpm prettier  # Format code (Prettier)\npnpm build     # Build CJS and ESM bundles (with TypeScript declarations) to dist/\n```\n\n## License\nMIT License - fork, modify and use however you want.\n","readmeFilename":"README.md","homepage":"https://github.com/bvaughn/highlight-words-core#readme","bugs":{"url":"https://github.com/bvaughn/highlight-words-core/issues"}}