{"_id":"document-highlighter","_rev":"65-4ba885561608b7ba7f63c9bf89730600","name":"document-highlighter","description":"Highlight a search-query in a HTML document","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"name":"document-highlighter","version":"1.0.0","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"bin":{"server":"./bin/server"},"scripts":{"start":"node ./bin/server","test":"NODE_ENV=test mocha -R spec test/","lint":"jshint lib/ test/","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.15.x","should":"2.1.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"description":"Content aware document Highlighter ======================= ![Build Status](https://travis-ci.org/Neamar/document-highlighter.png) ![Coverage Status](https://coveralls.io/repos/Neamar/document-highlighter/badge.png?branch=master)","_id":"document-highlighter@1.0.0","dist":{"shasum":"d23fd2652b0c3baed31a39cfb73c7dd2e747b6e7","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-1.0.0.tgz","integrity":"sha512-mGw1BjLB9iMWZhph/0t3CEM+1PQgXz/ayl5bAaHL4dYSUsIXwSTSWn8wcL0mN1avR9gEwwHqQcBTyEEsmTpNpg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHtTzdLfzZTbjGyb05AVunQe25mxTgZ1vBO2MAFOlGbFAiA90wtpXkgUmaZuMNcx3V6tAJTBqcpCKAd3zBZJm1QrWA=="}]},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}],"directories":{}},"1.0.1":{"name":"document-highlighter","version":"1.0.1","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"bin":{"server":"./bin/server"},"scripts":{"start":"node ./bin/server","test":"NODE_ENV=test mocha -R spec test/","lint":"jshint lib/ test/","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.15.x","should":"2.1.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"_id":"document-highlighter@1.0.1","dist":{"shasum":"92942f7a95dd9ca0eeba6d1c2b6dc7d523495c5f","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-1.0.1.tgz","integrity":"sha512-rKcoilPDdPO5BzoL40a1uCXszLE9F5Ay/ogBKO37kFfbsTIaRm0uud9nseTttqs6gESVGBHUXIMYXS41K+hGIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB78FkiZNDLTG9Y32hz+PElcQHeYU6nAw8y7/KV6wNdAAiBn8OJjtjR26nFj/jNz+1fxhYXq7RPs0eaIHCSqlg8g2g=="}]},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}],"directories":{}},"1.0.2":{"name":"document-highlighter","version":"1.0.2","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.15.x","should":"2.1.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"_id":"document-highlighter@1.0.2","dist":{"shasum":"c39f2d8dd466a91e4cab80fd067a053ab3c23159","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-1.0.2.tgz","integrity":"sha512-WmBni48HezNZaJiwy6HBvKh77mXlCamILfPbQEd29y3u+bW0QNQXKM81BNVjJ5BQtpTyvp02DZRbEqLWZOvyLQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+hQrE50fsmwEglk5Sb2GAhouLAMO3y+SYYulHiav9WwIgdkN9Oz3DYhP7iItoEkpBiNvEG30MGEUnaGmCzzYNV1U="}]},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}],"directories":{}},"1.0.3":{"name":"document-highlighter","version":"1.0.3","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.15.x","should":"2.1.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"_id":"document-highlighter@1.0.3","dist":{"shasum":"528dbab236a38cf57968e7a0d23e0677646a83d1","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-1.0.3.tgz","integrity":"sha512-M1lVR4eww3oViPmvgc/D6BAm4J4223OxXJScLcN96jWcnFE1vuMo4CarVW2ywzCo1VNPIHzoaElFxfiJfqWV5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSyulfFKw3VpmhuiP3XeHo1cT1rwvYYDdLNc1dn+MRYQIgRNBLJTik4BpsRXE9fwc1CJTl3QI164L7uEfd7ZgV2Ew="}]},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}],"directories":{}},"1.0.4":{"name":"document-highlighter","version":"1.0.4","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.15.x","should":"2.1.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"_id":"document-highlighter@1.0.4","dist":{"shasum":"01efbff3539778af702c0d86572d23a9a4359589","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-1.0.4.tgz","integrity":"sha512-QAJj/frkdoCDr6QR1T4K6A0kJ/vW1a4dQvjXwfVnTaxfmQt8FmOo46d0MVSc+1IRvV1tT+821CUBdXF3ai9ffg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXyW1zYX0iCiaLmMuxJLgZ2tFAFOJql0zZVjZ7nf2DEwIgBt08B9T7ZukO25B8RVqgELTLPLQDIJmTTJhLdKWU8OQ="}]},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}],"directories":{}},"1.0.5":{"name":"document-highlighter","version":"1.0.5","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.15.x","should":"2.1.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"_id":"document-highlighter@1.0.5","dist":{"shasum":"6562ef946eccfd88d921896bcc79878c2071582a","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-1.0.5.tgz","integrity":"sha512-DGqVRI7b1nNJgMaB6pOF9hxOHi3l6qbbn/zT2elcMhc7ERZMXg5v1BPcgJ2BGBgjW6Qsf3F1wOmWwKe4NsEERA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAAKZ5bY+OG5pYVPNTKs4MXu+SYU6Y+Vwt0sp/tyi//wIgTxbSGIgKdjUd+63bsiwzdZUyZyhTSdfAXbDrPUA7VaI="}]},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}],"directories":{}},"1.0.7":{"name":"document-highlighter","version":"1.0.7","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlight","highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"_id":"document-highlighter@1.0.7","dist":{"shasum":"ce3f0f39e208546175f0d7d1991a1d473557096f","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-1.0.7.tgz","integrity":"sha512-YJlX5NtADE2ID3SAC8aRd8KWg6f1fy1Es29bivO2WMwia/t2rAdvINMRMw+XM68PtZ48PD4+nS6DYlx0DVNh5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAysSWPAIAna31yldf4hSpxrP9Caj7EUXr1y57L+ZHeKAiEAyVENZ68knYUxXzeR6xmwvRWa1nEhc8GUBDsU8tJx1lM="}]},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}],"directories":{}},"1.0.8":{"name":"document-highlighter","version":"1.0.8","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlight","highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"_id":"document-highlighter@1.0.8","dist":{"shasum":"e8a605526e7343d4c099bb1874c248d70daf969a","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-1.0.8.tgz","integrity":"sha512-Xd/frJ7USuG5GjpeUYWWeB7uNHnIUH1/1gjQWtKhAqY4mdHkpNcWCOGQQtDxg5Dj8ODPfnI0Ro26YVvCcuoZmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzgZxH8Qq9pN5+ONHAq0ZTTNxBcZboLztqWhEJBmP3aQIhAIrDrwPcVsxqU44ipbHjtqMX9oIEj77k8FFrBYBKJU19"}]},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"}],"directories":{}},"2.0.0":{"name":"document-highlighter","version":"2.0.0","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlight","highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.18.x","should":"3.3.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"_id":"document-highlighter@2.0.0","dist":{"shasum":"3deb8d6fb55edbddf3a7237fcc84b1356a01acda","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-2.0.0.tgz","integrity":"sha512-MaSEGNrL5d+XnnKagHMPu8We8m/ZOziU766i+DJthNTdMdB47/MeP50ErWL5EUe7n+FaW28VPOyKgDM2algiZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsXReVPaIxqxLPbMgSVXlP2GJzANO4xNYccEZ+N5m8JwIhAMbOpW01ydDe1eZkWRo/Ai4oT9rl9E2B26+l54ViWWKY"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"merlin_nd","email":"merlin.nimier@gmail.com"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},{"name":"merlin_nd","email":"merlin.nimier@gmail.com"}],"directories":{}},"2.0.1":{"name":"document-highlighter","version":"2.0.1","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlight","highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.18.x","should":"3.3.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"_id":"document-highlighter@2.0.1","dist":{"shasum":"49ef49a61b74c9782d860887d11917bbc529b745","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-2.0.1.tgz","integrity":"sha512-W4IHJirQkv1bvFGh6nNGS1sk3BIG36+6ZSKy9zXIZzz7oDkeMcY+Quw389I8gUmpCffklEOCLy2brawHe6WIhw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAT86ZjA628HX5wQORTbMNrmGCWIeVWZbiDTdPUvJbJyAiEA4RoltNfPYOlBJDNxsGkkn+e+ygOJkw1Tz3WIzcqyjbs="}]},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},{"name":"merlin_nd","email":"merlin.nimier@gmail.com"}],"directories":{}},"2.0.2":{"name":"document-highlighter","version":"2.0.2","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlight","highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.18.x","should":"3.3.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"_id":"document-highlighter@2.0.2","dist":{"shasum":"b038a8ca13a2d1b0376fe97365930dfe31c666c1","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-2.0.2.tgz","integrity":"sha512-aQuugchNgL8QHpFplN1J8brYEyk2MyHg81M2Bh3pnd+BoxOzeAfIgh/3citkX/jPCdUszgXdyarFY4k/PPPmxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHh4KTsfklwSIvwO4vwOmLD0dmMC9utPEvFxQguGSyrEAiEAuKwOukNvtjVWgsdC7NJD1t2F2tT3bKnAdH+3M0Ysk3Y="}]},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},{"name":"merlin_nd","email":"merlin.nimier@gmail.com"}],"directories":{}},"2.0.3":{"name":"document-highlighter","version":"2.0.3","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlight","highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.18.x","should":"3.3.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"_id":"document-highlighter@2.0.3","dist":{"shasum":"343889215d93448fd065d8f15fcb6fd6a37ed54c","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-2.0.3.tgz","integrity":"sha512-jBGuLt2lXKN/YkvFekC8SxuYXn9RfCBiDDxnUMivEJdaCNBCUHyjeYxLq1MAtAil5QJ5snOM9Q3wIjkRo9e63w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD14BEvPqhd90AVh/pXsQm04NdW120QGukClsfF4VwkvwIhAKLBji1ZavScvbo+QnVbpqRWZrDBB0EZr69c14z4GXHQ"}]},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},{"name":"merlin_nd","email":"merlin.nimier@gmail.com"}],"directories":{}},"2.0.4":{"name":"document-highlighter","version":"2.0.4","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlight","highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.18.x","should":"3.3.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"gitHead":"a1be8166c826c021f34ee7ee5a4943b50b0af47a","_id":"document-highlighter@2.0.4","_shasum":"65664611b419f1e2b2ba72db21d2a76425749372","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},{"name":"merlin_nd","email":"merlin.nimier@gmail.com"}],"dist":{"shasum":"65664611b419f1e2b2ba72db21d2a76425749372","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-2.0.4.tgz","integrity":"sha512-+08isZydqKxDx86MiJP4pwOlti1V9VUIS/DwNvUKSTK2tZlh9iJJzUVarVy7SkkSzenP5TvRM249lUW+NUXlcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFsxdPfdL0lVhqQonINeE11ZnkD81CdgqIiYwJ19xTtkAiEArnVQfjXJYybaORU0q5lg4xkM/5W82sgfo6kVl7KZkcw="}]},"directories":{}},"2.0.5":{"name":"document-highlighter","version":"2.0.5","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/ --recursive","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlight","highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.18.x","should":"3.3.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"gitHead":"9770032d19556454ec616905445b37b55a9c6101","_id":"document-highlighter@2.0.5","_shasum":"16a0121e43969c742232f44798bd0fe932359004","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},{"name":"merlin_nd","email":"merlin.nimier@gmail.com"}],"dist":{"shasum":"16a0121e43969c742232f44798bd0fe932359004","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-2.0.5.tgz","integrity":"sha512-tai9hpzFrtzgfA89/kKJ4bxqDXdVt3vLbHmvIakmvhZ33DOzuM7Wv0GH8wcn4O0RriXxXpRJmdvZiwc/61MYLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/mRgu0/nWkEuBpa6ejmhzpPMPPFrliNvFUaphDLeRmAIgbdv1U+zdC7vRIc9l1XbqLrVKbiSi5buAS2m8GCec//I="}]},"directories":{}},"2.0.6":{"name":"document-highlighter","version":"2.0.6","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/ --recursive","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlight","highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.18.x","should":"3.3.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"gitHead":"873de86c85a3551c30bee00f26873ee744a22cd7","_id":"document-highlighter@2.0.6","_shasum":"b3c5afe2c9c084d0d0c3f8c7e8a992af4b3fb3d4","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},{"name":"merlin_nd","email":"merlin.nimier@gmail.com"}],"dist":{"shasum":"b3c5afe2c9c084d0d0c3f8c7e8a992af4b3fb3d4","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-2.0.6.tgz","integrity":"sha512-ln97lzusR4WaMx+c/e3NXncA0qtWVSUriKkkQuqkQyjNz3Eu+5dBIJHIbzE2NDHf8OeOgKPAXp3pMumeG3s/zA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5FIFHMOYzDyI+kV/cOymhanRwcyu4AUVLYgchoKWFHgIgan4olNXpWH8kYnV6NCYfNtpyRCQ0h7toEo2Ms0rmwwY="}]},"directories":{}},"2.0.7":{"name":"document-highlighter","version":"2.0.7","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/ --recursive","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"https://github.com/Neamar/document-highlighter/"},"keywords":["highlight","highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.18.x","should":"3.3.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"gitHead":"91f8864f4d842cc849f08c166bc35904d5801511","_id":"document-highlighter@2.0.7","_shasum":"10470fb3f176d4a0e38b9daa90bce5c00e88800d","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},"dist":{"shasum":"10470fb3f176d4a0e38b9daa90bce5c00e88800d","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-2.0.7.tgz","integrity":"sha512-w54LoyvFNPsAjCBiSSq4gFcdqDO1bcsqOP/FU+HjfcQDDPZ0sByuuN5ghoeiPMBgQpNTariDLZlc7/yvFuFDNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHUsmQWwUDWT/cvOU88mXXCHX6NsCG2n9x0rnn38jRG+AiAu4HNr8mHEHF6VErkYI9yufjRZJ2p3byYSg0WoZXxNOQ=="}]},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu.bacconnier@papiel.fr"},{"name":"merlin_nd","email":"merlin.nimier@gmail.com"}],"directories":{}},"2.1.0":{"name":"document-highlighter","version":"2.1.0","description":"Highlight a search-query in a HTML document","author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"scripts":{"test":"NODE_ENV=test mocha -R spec test/ --recursive","coverage":"NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- -R spec test/"},"main":"./lib","repository":{"type":"git","url":"git+https://github.com/Neamar/document-highlighter.git"},"keywords":["highlight","highlighting","html","snippet","query","queries","search"],"dependencies":{},"devDependencies":{"mocha":"1.18.x","should":"3.3.x"},"licence":"WTFPL","engines":{"node":">=0.10"},"gitHead":"726a7004efabf5d74bb8090158c13650e40d7333","bugs":{"url":"https://github.com/Neamar/document-highlighter/issues"},"homepage":"https://github.com/Neamar/document-highlighter#readme","_id":"document-highlighter@2.1.0","_nodeVersion":"19.3.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-hD7aGIItjC40t+dk4quppTOMUfZIzu3vlhkaUQzVuimhJNB4apQjpMM8Qek0H4BJK813xja7MZTRbZJ0EiMu9Q==","shasum":"70e26f6dc63f87b46967608f3a96d16774a7087e","tarball":"https://registry.npmjs.org/document-highlighter/-/document-highlighter-2.1.0.tgz","fileCount":18,"unpackedSize":942262,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoaYgj4mVdgUTU6vPUK4qC2wJ242cKfBpEBXMzs8TKfgIgOPDbdIHFUifQLZBKtTrfmDO1SMs5PzJY4PtmQHAty+c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvZ1BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo7RA/+KbVrBQUjy2zxgByHowjEVAR8mTHZ2q9/ScC+9ZIr9bKMVMwC\r\na6YQO/7otEtve8HI3yfcFnwPrkaPG5xjcTejsuV4BTJgKANjnjc9A+dDOGFF\r\nEZv3j50yJ7fp8xayv0MMdnOcVvxOgZrpzUMi4hJiGwDpoOpf29A+/FaTnCgB\r\nG/n2irw8EUpbWg7wh4q7RiXGFN8MZOhCWFZz0CPxHoiQ/lEa2jUpzvzAkg8o\r\ngOEsh39K6JHwYfzctNTA6ty2FQsR/9g7n1xI1FobFM2o1L1VXQ0vd9xz3WBK\r\nuqifJYow1ZDYmd219/O8QnKwiwTVUjq5CVD04ATs/OD+Nbh0TZbp/vQl4Mc4\r\nQl3QBKd6kdJZTwQ4eIHZm94D0izLm2mp/GzsiAjDEgMc+EwxwceuFr8tMUrc\r\nEoEhZWUAcNQtizgGQl0fYWeCx4JhovFoaWass5FOFEOdcScx7ivW9LvO0Ett\r\nRAoWlVIxxfgciBBRNHpI4BHtsiYDwwjUnP9NWydeBOOrteIfDUK2v7OQ53eH\r\nVKoAVXdumZ3SZrNDK/+Z4BWS5X8yZt6uGirs2LqILAxWlkl5Bg+RiVB09MFK\r\nJdmPWmoCi6urCn+Pb3hS+9NrL1rjBBEouejP+tsHURVA2P0BkZP2w4gvVPwY\r\nU//nH270JkfBx3/MbagepeGu8cQ/qpOZOCw=\r\n=to78\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"matthieu.bacconnier","email":"matthieu@bacconnier.fr"},"directories":{},"maintainers":[{"name":"matthieu.bacconnier","email":"matthieu@bacconnier.fr"},{"name":"merlin_nd","email":"merlin.nimier@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/document-highlighter_2.1.0_1673370945324_0.47723860563802534"},"_hasShrinkwrap":false}},"readme":"Content aware document Highlighter\n=======================\n![Build Status](https://travis-ci.org/Neamar/document-highlighter.png)\n![Coverage Status](https://coveralls.io/repos/Neamar/document-highlighter/badge.png?branch=master)\n\n## What is `document highlighter`?\nAdd highlight to a raw / HTML document for the specified query. Handle unicode, stop-words and punctuation.\nGenerate HTML-compliant highlights, even for complex markup.\n\n## Samples\n### Plain text\n#### Simple case\nThe following text :\n\n> The index analysis module acts as a configurable registry of Analyzers that can be used in order to both break indexed (analyzed) fields when a document is indexed and process query strings. It maps to the Lucene Analyzer.\n\nWhen highlighted for the query `The index analysis string` will become:\n\n> **The index analysis** module acts as a configurable registry of Analyzers that can be used in order to both break indexed (analyzed) fields when a document is indexed and process query **strings**. It maps to the Lucene Analyzer.\n\nNote generated markup is minimal (one item per match, and not one item per word).\n\n#### Stopwords\nDocument highlighter handles stopwords and punctuation according to the language specified. For instance, the following text:\n\n> Install this library, and start using it.\n\nWhen highlighted for the query `install library` will become:\n\n> **Install this library**, and start using it.\n\n### HTML\nThis also works for HTML documents, e.g. :\n\n> This document contains _italics_ and stuff.\n\nWhen highlighted for the query `it contains some italic empty` will become:\n> This document **contains _italics_** and stuff.\n\nDocument highlighter maintains original markup and add wrapping tags as needed.\n\n## Usage\n### Highlight plain text documents\n```javascript\nvar highlighter = require('document-highlighter');\n\nvar hl = highlighter.text(\n    'In JavaScript, you can define a callback handler in regex string replace operations',\n    'callback handler in operations'\n);\n\nconsole.log(hl.text);\n// \"In JavaScript, you can define a <strong>callback handler in</strong> regex string replace <strong>operations</strong>\"\n\nconsole.log(hl.indices);\n// [\n//   { startIndex: 32, endIndex: 51, content: 'callback handler in' },\n//   { startIndex: 73, endIndex: 83, content: 'operations' }\n// ]\n```\n\n### Highlight HTML documents\n```javascript\nvar highlighter = require('document-highlighter');\n\nvar hl = highlighter.html(\n    '<em>Eat drink and be merry</em> for tomorrow we die',\n    'merry for tomorrow'\n);\n\nconsole.log(hl.html);\n// <em>Eat drink and be <strong>merry</strong></em><strong class=\"secondary\"> for tomorrow</strong> we die\n\nconsole.log(hl.text);\n// Eat drink and be <strong>merry for tomorrow</strong> we die\n```\n\n### Customize highlight markup\n```javascript\nvar highlighter = require('document-highlighter');\n\nvar hl = highlighter.text(\n    'In JavaScript, you can define a callback handler in regex string replace operations',\n    'callback handler in operations',\n    {\n        before: '<span class=\"hlt\">',\n        after: '</span>',\n    }\n);\n\nconsole.log(hl.text);\n// \"In JavaScript, you can define a <span class=\"hlt\">callback handler in</span> regex string replace <span class=\"hlt\">operations</span>\"\n```\n\n> Note: in HTML mode, your highlight may be split up in multiple items in order to keep your existing markup (block level elements stop inline highlighting). The default is to add a `.secondary` class; but you can override this using the `beforeSecond` key in the option.\n\nIn some case, you may want to customize highlighting for all calls to the highlighter. You can use `defaultOptions` parameter. Note you cannot directly override this with a new object; you need to update the keys one by one.\n\n```javascript\nvar highlighter = require('document-highlighter');\nhighlighter.defaultOptions.before = '<span class=\"hlt\">';\nhighlighter.defaultOptions.after = '</span>';\n\nvar hl = highlighter.text(\n    'In JavaScript, you can define a callback handler in regex string replace operations',\n    'callback handler in operations'\n);\n\nconsole.log(hl.text);\n// \"In JavaScript, you can define a <span class=\"hlt\">callback handler in</span> regex string replace <span class=\"hlt\">operations</span>\"\n```\n","maintainers":[{"name":"matthieu.bacconnier","email":"matthieu@bacconnier.fr"},{"name":"merlin_nd","email":"merlin.nimier@gmail.com"}],"time":{"modified":"2023-03-13T20:49:40.397Z","created":"2014-01-06T10:42:14.652Z","1.0.0":"2014-01-06T10:42:17.165Z","1.0.1":"2014-01-06T12:10:10.271Z","1.0.2":"2014-01-08T15:18:26.704Z","1.0.3":"2014-01-15T10:55:15.472Z","1.0.4":"2014-01-20T14:40:06.781Z","1.0.5":"2014-02-03T09:26:18.620Z","1.0.6":"2014-02-05T16:54:16.438Z","1.0.7":"2014-02-10T17:30:26.397Z","1.0.8":"2014-04-21T19:07:39.002Z","2.0.0":"2014-08-01T15:34:50.604Z","2.0.1":"2014-08-28T15:59:07.700Z","2.0.2":"2014-09-29T14:12:31.369Z","2.0.3":"2014-10-30T09:31:03.049Z","2.0.4":"2014-12-18T14:48:22.956Z","2.0.5":"2015-01-27T15:45:20.369Z","2.0.6":"2015-02-09T10:41:05.683Z","2.0.7":"2015-12-22T09:27:19.713Z","2.1.0":"2023-01-10T17:15:45.630Z"},"author":{"name":"Matthieu Bacconnier","email":"matthieu.bacconnier@papiel.fr"},"repository":{"type":"git","url":"git+https://github.com/Neamar/document-highlighter.git"},"readmeFilename":"README.md","keywords":["highlight","highlighting","html","snippet","query","queries","search"],"users":{"merlin_nd":true,"flumpus-dev":true},"homepage":"https://github.com/Neamar/document-highlighter#readme","bugs":{"url":"https://github.com/Neamar/document-highlighter/issues"}}