{"name":"@starptech/rehype-minify-whitespace","version":"0.10.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.5","hast-util-embedded":"^1.0.4","hast-util-has-property":"^1.0.3","hast-util-is-body-ok-link":"^1.0.2","hast-util-is-element":"^1.0.3","html-whitespace-sensitive-tag-names":"^1.0.1","unist-util-is":"^2.1.3","unist-util-modify-children":"^1.1.4"},"devDependencies":{"@starptech/prettyhtml-hastscript":"^0.10.0","ava":"^2.1.0","nyc":"^14.1.1","rehype":"^8.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":"c417941cf747a0c94abd2dd17eb468395195e752","_id":"@starptech/rehype-minify-whitespace@0.10.0","_nodeVersion":"12.4.0","_npmVersion":"lerna/3.13.0/node@v12.4.0+x64 (linux)","_npmUser":{"name":"starptech","email":"deusdustin@gmail.com"},"dist":{"integrity":"sha512-11k2dW0ju2hMuSfQ9znXqeCjyBtkfY7BRoyPjDLiVCsGIlqM2JpZhx46sFTF3JJOsJz9pr2HQ8Cvf4oTt9hgvg==","shasum":"48b15009d9dcc4539e1a03e3b8555ba5b0208947","tarball":"http://registry-npm.ywwl.com/@starptech/rehype-minify-whitespace/download/@starptech/rehype-minify-whitespace-0.10.0.tgz","fileCount":5,"unpackedSize":6464,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdDVMACRA9TVsSAnZWagAAQm0P+gN6i5anBX01CTquskI5\nwRyT1taCxn/3PZ3TROe0dUPXKH1bUhlZhVIwiw7oA5sSNc91M7iGT2y07O8J\nTQ1YhSnl1gJFoALHyWQGNsX1H9MjzqnI86q9Bs94rORXFL3/Q1Jls9lmrHBS\nkYEML/l44kLwMjVcT0m+ln86nqrDPtze40Hrum1iM3LIb79Z2Uvhhq4T0Dph\nwwtIn64S1A+avX6CVLfTv4fOGWbPR+zBlw07tT4RwVNbUeyM83iULQaQf0fN\nmI8GHindeaori7t/GUHjwQggqrwHJqsL4lV7JmhLFjHXz0s3oBP57V8r1ENo\n3ObggJwVDR+E4CX4bVYi9RBskfOoqaG4QHIeYZQYu+qQPCpAfIZDaXSj2Un+\nO5bOFdSW9Ut0v8OemgNr91vSpMLOA26+RBVoXP+lCH6lhk7nYuJlwnoHJr8o\ngvoRRUVveImULj5eSEcryFsAqj/gB0VNH8qPxPsLiQfVSF6GcCIOlIp/uY8Z\nIH/82V5nvCJ+6Xz622g4+4ugzC03TiAM+0KdUVWIW8MFjeE3bDoNO8lnkE9I\nH0Jv6itVY1kmH1hrxDIb2bEJZM8TFyjkMkIHeOMTUuRsxZHnL8CI66bwToHY\n+CDZT+nzB15/M8ECT/xREHSIx7OCgu83C4YQzz/rGYUTTRyVoQSmZoiIyCgA\nE7Ys\r\n=nuSB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDG1duZR0upqi4DuBUAmouIlftNbPe0mfZnf52klx3HjAIgMZtkNEJPsdGS9kKKqJoQFRANNoVuGPsCH2UGnnfBXWc="}],"size":2877,"noattachment":false,"key":"/@starptech/rehype-minify-whitespace/-/@starptech/rehype-minify-whitespace-0.10.0.tgz"},"maintainers":[{"name":"starptech","email":"deusdustin@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-minify-whitespace_0.10.0_1561154303916_0.42817207758102227"},"_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":1561154304057,"_cnpm_publish_time":1561154304057,"dist-tags":{"latest":"0.10.0"}}