{"name":"@starptech/rehype-minify-whitespace","version":"0.6.0","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.6.0","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":"cac4b4a67029454e823e3a2ac9f0f88be8c72ba8","_resolved":"","_integrity":"","_from":"file:starptech-rehype-minify-whitespace-0.6.0.tgz","_id":"@starptech/rehype-minify-whitespace@0.6.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"starptech","email":"deusdustin@gmail.com"},"dist":{"integrity":"sha512-1g4DuXzrOZpQ56XxvKvdoTz2/faOesX44q62ZC4fdA4WQo5mm8LQyC+1tiFSeoOJ5m7RQcosK3HD5hR6Xnvoqw==","shasum":"4253a54c566874c27bd914da04284ab0c0a9482b","tarball":"http://registry-npm.ywwl.com/@starptech/rehype-minify-whitespace/download/@starptech/rehype-minify-whitespace-0.6.0.tgz","fileCount":5,"unpackedSize":6210,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5LT9CRA9TVsSAnZWagAAp4AP/1sYkY9reqocmzrYLwcQ\nxTITbJmlBX6uwNRXR74dq9i3SEt8zcK1g6xo9KPtU4h+N91xuE/vPycd29gs\n/tEd5r/QbOZkcpe0XkJuv4WQE2xO2VaEczIHSD98XqRakAXFszdWAYXccu+t\n7fapYWYztNJuEoo/go7WA5vqCXqc/0gVzsd31WbTtDvDBqT2JmO2ivzMFj2f\n5csYU1GQcvvMVLMfMWOn4fxbD0qRAarqOVgOCih5Xu0OP4D4LC8A5oPCK4sa\nGDgDm+o0ywvVJwsUtMCqdUJA63Db33TKbmeDZ5rMP7Si2aTxDq3NS0/a2jP/\n4SksEvW5sD1rrsIxXBXpU4kFNMITVUORw/sTDMYbJMjzQxfGHYMt6wF5Djqn\nwPxE5EReLe91xR/in+j9Bm2EbyRrKsKMBo1hMdSd7GlaE7nU4TgkGg7o1Vb/\n6oGjK8GFWCTts3GkNNswXPXAxUeLowUcWOxQKFntiSqCBhpHtjPLE/YC+BjX\n/fYJPPiUKu6QPjY2ohn5CbJ/o1skY50eyKDN2QHTmpHC7IJ1diWvlbxsaOBt\nodmD9vAhZetyXzaNqwm1xmho6mKFLYnHEHMaV9wE2jBWaPNqA1K+wOzC9AmY\ngizeqRVsetSPVeIs1SHwbOPY2YQS3NmfkxxGUdZofRXd/15Dw3fWbLY/eg+f\n0/zU\r\n=Ft/Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBP1NuyT9t5yPpEZi/0qxEYBJ+SwEpQAn/8V7ZhkeFdUAiBBZCXUyN2P/XIKjNErL6E+S4RBK6WYCl0UB7dIjZPhzA=="}],"size":2808,"noattachment":false,"key":"/@starptech/rehype-minify-whitespace/-/@starptech/rehype-minify-whitespace-0.6.0.tgz"},"maintainers":[{"name":"starptech","email":"deusdustin@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-minify-whitespace_0.6.0_1541715197146_0.20361307619464508"},"_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":1541715197262,"_cnpm_publish_time":1541715197262,"dist-tags":{"latest":"0.10.0"}}