{"name":"@starptech/rehype-minify-whitespace","version":"0.8.1","description":"Collapse whitespace.","main":"index.js","keywords":["prettyhtml","collapse","whitespace"],"author":{"name":"Dustin Deus","email":"deusdustin@gmail.com","url":"http://www.starptech.de"},"license":"ISC","dependencies":{"collapse-white-space":"^1.0.4","hast-util-embedded":"^1.0.1","hast-util-has-property":"^1.0.1","hast-util-is-body-ok-link":"^1.0.1","hast-util-is-element":"^1.0.1","html-whitespace-sensitive-tag-names":"^1.0.0","unist-util-is":"^2.1.2","unist-util-modify-children":"^1.1.2"},"devDependencies":{"@starptech/prettyhtml-hastscript":"^0.8.1","ava":"^0.25.0","nyc":"^13.0.1","rehype":"^6.0.0"},"scripts":{"test":"ava","test-coverage":"nyc --reporter lcov ava"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"publishConfig":{"access":"public"},"gitHead":"87368ed3afbcc0aa0eb50931da40d5abd53f01a8","_id":"@starptech/rehype-minify-whitespace@0.8.1","_npmVersion":"5.6.0","_nodeVersion":"8.12.0","_npmUser":{"name":"starptech","email":"deusdustin@gmail.com"},"dist":{"integrity":"sha512-wIJ3Ifxzn/SY7qv1k86AMSlDAmJAMST2eluFR/CcR9whaIuvuCwegAD0cWw0oLvGkAoSiOlZV4u25Ba/Q0vy8A==","shasum":"883322d383c7bfb550131c56955322ef1bf1a355","tarball":"http://registry-npm.ywwl.com/@starptech/rehype-minify-whitespace/download/@starptech/rehype-minify-whitespace-0.8.1.tgz","fileCount":5,"unpackedSize":6376,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6U22CRA9TVsSAnZWagAAURMQAJ0PtoK0WBx8uP3O8YEo\nv4VGdfBksNrjgmzhKwwK966ZTIxkIJ5mfhDK4s7cDG68iRxZADPuqgTcGlWX\nYNLHCJgH+UViwQ/bIoSbbOlDIQQJwf4MctYSihH/QtcHmaA42wiNxy1w/p1I\nscDarx2pbRdLI7Ov3nUT8W67AZzhL4lhJYn9bQ7v0Y4MFIISD45wi/DntJqH\nJ9qKgQI7l/V6N/pjIxyHZcAesc8F3vjIT8Z+dBciUHSdI/bbPmyUcY2+Kv6x\nxDkJpkzo3ERusm5CgxGoVfVi9iKqroegAuzPqTgZrU4RgNs4+mkRnoW9QwDa\nq4tQHddmCPm3VAP/VlSa2SFIj1QLer2bwGKcQqEl2x6RUDp5wlmmgg0A/X6L\nUzJe2Fzw2yO1X7qB+QltpBQe3QpVhDnHOsUxEG8GsiEeZ9sPeLHHAIOJO6Xy\nXG/+yntwWProJkdrZWFxxCb7hDajGfHNwbNiNxKrC5j0Bomc/JOVCU5idp4j\nVJa8T0QEY2+umhS8y9jLf1gJ6FOhah9ZB+bwFfg19Eyp34um1OSZ9424Z+OG\n32Px1pVX4bQK0MG8LHiuQBxL50rQVGlZGwQ6p8vZRUzhv+9H1aCunO7iqnAs\n0EczwxHgafuxE2/cIFfMCZkMUu+9B/lBa0TPDCkOHXbIUdRMlJusZzihH2Lo\nqmnX\r\n=q1t9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAn6xLcgrtQQF20mjgIPoIRT6oz5Ljzbz6jEpBpOE3bdAiEArz553fEzHF9lrzrq/MFyyRYKouFERcNImzgmQQ9b4vM="}],"size":2854,"noattachment":false,"key":"/@starptech/rehype-minify-whitespace/-/@starptech/rehype-minify-whitespace-0.8.1.tgz"},"maintainers":[{"name":"starptech","email":"deusdustin@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-minify-whitespace_0.8.1_1542016437309_0.47093957193507285"},"_hasShrinkwrap":false,"readme":"# @starptech/rehype-minify-whitespace\n\nCollapse whitespace.\n\nNormally, collapses to a single space. If `newlines: true`,\ncollapses white-space containing newlines to `'\\n'` instead\nof `' '`.\n\n## Installation\n\n```\nnpm install --save @starptech/rehype-minify-whitespace\n```\n\n## Usage\n\n##### In\n\n```html\n<h1>Heading</h1>\n···→ →···foo···→\n<p><strong>This</strong> and <em>that</em></p>\n```\n\n##### Out\n\n```html\n<h1>Heading</h1>\nfoo\n<p><strong>This</strong> and <em>that</em></p>\n```\n\n## Api\n\n###### `node.data.ignore`\n\nWhen this property is `true` the node is skipped for whitespace handling.\n\n###### `node.data.preserveWhitespace`\n\nWhen this property is `true` the node is skipped for whitespace handling.\n\n## Caveats\n\nThe implementation is a modified version of [**Rehype rehype-minify-whitespace 2.0.3**](https://github.com/rehypejs/rehype-minify/tree/master/packages/rehype-minify-whitespace)\n","publish_time":1542016437407,"_cnpm_publish_time":1542016437407,"dist-tags":{"latest":"0.10.0"}}