{"_id":"innertext","_rev":"2894908","name":"innertext","description":"Extract the innerText from a snippet of HTML","dist-tags":{"latest":"1.0.3"},"maintainers":[{"name":"revin","email":"rg@sevenite.com"}],"time":{"modified":"2022-12-08T07:27:07.000Z","created":"2016-09-23T18:08:55.209Z","1.0.3":"2018-03-06T21:20:47.005Z","1.0.2":"2017-05-02T23:44:48.456Z","1.0.1":"2016-09-23T18:11:03.984Z","1.0.0":"2016-09-23T18:08:55.209Z"},"users":{},"author":{"name":"Revin Guillen"},"repository":{"type":"git","url":"git+ssh://git@github.com/revin/innertext.git"},"versions":{"1.0.3":{"name":"innertext","version":"1.0.3","description":"Extract the innerText from a snippet of HTML","main":"index.js","scripts":{"test":"mocha --timeout 5000"},"repository":{"type":"git","url":"git+ssh://git@github.com/revin/innertext.git"},"devDependencies":{"mocha":"^4.0.0"},"keywords":["html","markup","extract","innertext","inner","text"],"author":{"name":"Revin Guillen"},"license":"ISC","bugs":{"url":"https://github.com/revin/innertext/issues"},"homepage":"https://github.com/revin/innertext#readme","dependencies":{"html-entities":"^1.2.0"},"gitHead":"ac520bb25a221beaa93d5b3c43c6ce093959c3c9","_id":"innertext@1.0.3","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"revin","email":"rg@sevenite.com"},"dist":{"shasum":"f1a8767592bcdcce2ea94e686ed41a86ba4e8df0","size":2723,"noattachment":false,"key":"/innertext/-/innertext-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/innertext/download/innertext-1.0.3.tgz"},"maintainers":[{"name":"revin","email":"rg@sevenite.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/innertext_1.0.3_1520371246959_0.6692482747872266"},"_hasShrinkwrap":false,"publish_time":1520371247005,"_cnpm_publish_time":1520371247005,"_cnpmcore_publish_time":"2021-12-17T11:44:06.111Z"},"1.0.2":{"name":"innertext","version":"1.0.2","description":"Extract the innerText from a snippet of HTML","main":"index.js","scripts":{"test":"mocha --timeout 5000"},"repository":{"type":"git","url":"git+ssh://git@github.com/revin/innertext.git"},"devDependencies":{"mocha":"^3.0.2"},"keywords":["html","markup","extract","innertext","inner","text"],"author":{"name":"Revin Guillen"},"license":"ISC","bugs":{"url":"https://github.com/revin/innertext/issues"},"homepage":"https://github.com/revin/innertext#readme","dependencies":{"html-entities":"^1.2.0"},"gitHead":"d8173757f90695b80ca24d53e3de777ec95442a1","_id":"innertext@1.0.2","_shasum":"11a197b3143a593636fba5d59213835e6954580a","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.10.0","_npmUser":{"name":"revin","email":"rg@sevenite.com"},"dist":{"shasum":"11a197b3143a593636fba5d59213835e6954580a","size":3032,"noattachment":false,"key":"/innertext/-/innertext-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/innertext/download/innertext-1.0.2.tgz"},"maintainers":[{"name":"revin","email":"rg@sevenite.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/innertext-1.0.2.tgz_1493768686295_0.07900598016567528"},"directories":{},"publish_time":1493768688456,"_hasShrinkwrap":false,"_cnpm_publish_time":1493768688456,"_cnpmcore_publish_time":"2021-12-17T11:44:06.342Z"},"1.0.1":{"name":"innertext","version":"1.0.1","description":"Extract the innerText from a snippet of HTML","main":"index.js","scripts":{"test":"mocha --timeout 5000"},"repository":{"type":"git","url":"git+ssh://git@github.com/revin/innertext.git"},"devDependencies":{"mocha":"^3.0.2"},"keywords":["html","markup","extract","innertext","inner","text"],"author":{"name":"Revin Guillen"},"license":"ISC","bugs":{"url":"https://github.com/revin/innertext/issues"},"homepage":"https://github.com/revin/innertext#readme","dependencies":{"html-entities":"^1.2.0"},"gitHead":"9e901aca61ab78549906debc47a9f50e12bfa20c","_id":"innertext@1.0.1","_shasum":"bd708f784c3ed9c28a44e0f4376d27a6d3491cb2","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.12.0","_npmUser":{"name":"revin","email":"rg@sevenite.com"},"dist":{"shasum":"bd708f784c3ed9c28a44e0f4376d27a6d3491cb2","size":2998,"noattachment":false,"key":"/innertext/-/innertext-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/innertext/download/innertext-1.0.1.tgz"},"maintainers":[{"name":"revin","email":"rg@sevenite.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/innertext-1.0.1.tgz_1474654261834_0.9299991754814982"},"directories":{},"publish_time":1474654263984,"_hasShrinkwrap":false,"_cnpm_publish_time":1474654263984,"_cnpmcore_publish_time":"2021-12-17T11:44:06.547Z"},"1.0.0":{"name":"innertext","version":"1.0.0","description":"Extract the innerText from a snippet of HTML","main":"index.js","scripts":{"test":"mocha --timeout 5000"},"repository":{"type":"git","url":"git+ssh://git@github.com/revin/innertext.git"},"devDependencies":{"mocha":"^3.0.2"},"keywords":["html","markup","extract","innertext","inner","text"],"author":{"name":"Revin Guillen"},"license":"ISC","bugs":{"url":"https://github.com/revin/innertext/issues"},"homepage":"https://github.com/revin/innertext#readme","dependencies":{"html-entities":"^1.2.0"},"gitHead":"31bcdd8a01d0bd675628bc4fb099d793c1551b70","_id":"innertext@1.0.0","_shasum":"350bbdeb1abe79cfabe497fa3179074ccc5ea677","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.12.0","_npmUser":{"name":"revin","email":"rg@sevenite.com"},"dist":{"shasum":"350bbdeb1abe79cfabe497fa3179074ccc5ea677","size":3003,"noattachment":false,"key":"/innertext/-/innertext-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/innertext/download/innertext-1.0.0.tgz"},"maintainers":[{"name":"revin","email":"rg@sevenite.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/innertext-1.0.0.tgz_1474654134984_0.6279904604889452"},"directories":{},"publish_time":1474654135209,"_hasShrinkwrap":false,"_cnpm_publish_time":1474654135209,"_cnpmcore_publish_time":"2021-12-17T11:44:06.977Z"}},"readme":"# innertext\n\nExtract the `innerText` from a snippet of HTML\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/revin/innertext.svg)](https://greenkeeper.io/)\n[![Build Status](https://travis-ci.org/revin/innertext.svg?branch=master)](https://travis-ci.org/revin/innertext)\n[![Code Climate](https://codeclimate.com/github/revin/innertext/badges/gpa.svg)](https://codeclimate.com/github/revin/innertext)\n\n## Installation\n\n```sh\nnpm install innertext\n```\n\n## Usage\n\nPass it a string containing some HTML.\n\n```js\nvar innertext = require('innertext');\n\nvar text = innertext('<h1>Heading text <em>with</em> <b>some</b> <u>markup</u></h1>');\n\nconsole.log(text); // 'Heading text with some markup'\n```\n\n## Correctness\n\nThe current implementation favors speed and simplicity over other considerations\nlike perfect web browser compatibility. For instance:\n\n* malformed HTML (e.g., un-encoded `<` &amp; `>` characters, etc&hellip;)\n  will generally break the text extraction process\n* whitespace around HTML tag/element boundaries gets collapsed into a single\n  space, whereas browsers will typically preserve newlines\n\nSo if you trust the incoming HTML, things will typically be OK, but don't use\nthis as the basis for creating a browser or anything.\n\n## Tests\n\n```sh\nnpm install\nnpm test\n```\n\n## License\n\nISC\n","_attachments":{},"homepage":"https://github.com/revin/innertext#readme","bugs":{"url":"https://github.com/revin/innertext/issues"},"license":"ISC"}