{"name":"normalize-html-whitespace","description":"Safely remove repeating whitespace from HTML text.","version":"1.0.0","license":"MIT","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"https://www.svachon.com/"},"repository":{"type":"git","url":"git+https://github.com/stevenvachon/normalize-html-whitespace.git"},"browser":"index-es5.js","devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.3.3","@babel/preset-env":"^7.3.1","chai":"^4.2.0","mocha":"^6.0.1"},"engines":{"node":">= 8"},"scripts":{"pretest":"babel index.js --out-file=index-es5.js --presets=@babel/env","test":"mocha test --check-leaks --bail"},"keywords":["collapse","compact","condense","html","minify","normalize","remove","space","str","string","strip","trim","whitespace"],"gitHead":"43a04bd7a069003e379f9ce74bd50d649c7ce9b9","bugs":{"url":"https://github.com/stevenvachon/normalize-html-whitespace/issues"},"homepage":"https://github.com/stevenvachon/normalize-html-whitespace#readme","_id":"normalize-html-whitespace@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"dist":{"integrity":"sha512-9ui7CGtOOlehQu0t/OhhlmDyc71mKVlv+4vF+me4iZLPrNtRL2xoquEdfZxasC/bdQi/Hr3iTrpyRKIG+ocabA==","shasum":"5e3c8e192f1b06c3b9eee4b7e7f28854c7601e34","tarball":"http://registry-npm.ywwl.com/normalize-html-whitespace/download/normalize-html-whitespace-1.0.0.tgz","fileCount":5,"unpackedSize":4659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdB5eCRA9TVsSAnZWagAAbh0P/jASZmqnrA4QSivrh1cQ\nvYpS3Gboffdh+OPHBI9T/IcrjXzFS5KR0z395KDjo+EraccxtQPKvFyp+JxU\nbEV3YM4qqL1C8d1vonRRvSz2HSriATmpmcucBBVIDR4QJbe/S8vb7BnZzmU2\npAVI4dJufRHL2yA7A791c35MREQMOqd+UCCNBjzeSI9W12kYXQgbq/NPXCq9\nrv6oHK+AcBZd3D2yJT7Xsx30kUQd/TvzsgDwT4qV6DcvQNZt5DiOoGNi3I4Y\nNf0a+4m2sOeZxJJ8tW1otiNPnjvpRQJaSOab8618SGIPADOnslQKrTqteWXA\na62o7jIMqIjjewTRsrKbwYag2IR+lOBIRVNqCIzPKFwtSFxuZ6dCzbZDkBuu\nInN47Nuy0gJ4b2JRoT+LWvnb4eabc3FHpmtxjpHmnDtvym5rve65p7WjfIoZ\nUigLvk2KaCONRwErHfrQq+TZG0yxWFWmKNesLGI6sMFLx9S7vePYy19bsyau\n7W7nJxEgf9Youb1Dt8ZcZYB5/CXlJZS8hpBpZscJFpsHcnB9/lAjr699218l\nTmpIXW+ghdHLEI/tQuWzA72v0GgvKCVAqP7G4q5CAe3PaLJAkWAuzzdQA2tn\nHt7yqFGov+lmhRaqWhWHZPikmYm8Lho9QaP7R/hDoB+4/M39y0Vy2Tkpiuo4\nuX1X\r\n=6hrm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoMicJ1h0GzuofVK+BzA/CFIVTFoJ1nVKaKnYB+ZdMNwIgQrAeQeMVsiriWFwa7k7kbwy0U6/N+5UUIG6NavXAV30="}],"size":2334,"noattachment":false,"key":"/normalize-html-whitespace/-/normalize-html-whitespace-1.0.0.tgz"},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/normalize-html-whitespace_1.0.0_1551113821890_0.5717073618513726"},"_hasShrinkwrap":false,"readme":"# normalize-html-whitespace [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]\n\n> Safely remove repeating whitespace from HTML text.\n\n\nUsing `\\s` to normalize HTML whitespace will strip out characters that are actually rendered by a web browser. Such would be classified as a lossy change and would produce a different visual result. This package will collapse multiple whitespace characters down to a single space, while ignoring the following characters:\n\n* `\\u00a0` or `&nbsp;` (non-breaking space)\n* `\\ufeff` or `&#65279;` (zero-width non-breaking space)\n\n…as well as these lesser-known ones:\n\n* `\\u1680`​ or `&#5760;` (Ogham space mark)\n* `\\u180e` or `&#6158;` (Mongolian vowel separator)\n* `\\u2000​` or `&#8192;` (en quad)\n* `\\u2001` or `&#8193;` (em quad)\n* `\\u2002` or `&#8194;` (en space)\n* `\\u2003` or `&#8195;` (em space)\n* `\\u2004` or `&#8196;` (three-per-em space)\n* `\\u2005` or `&#8197;` (four-per-em space)\n* `\\u2006` or `&#8198;` (six-per-em space)\n* `\\u2007` or `&#8199;` (figure space)\n* `\\u2008` or `&#8200;` (punctuation space)\n* `\\u2009` or `&#8201;` (thin space)\n* `\\u200a` or `&#8202;` (hair space)\n* `\\u2028` or `&#8232;` (line separator)\n* `\\u2029` or `&#8233;` (paragraph separator)\n* `\\u202f` or `&#8239;` (narrow non-breaking space)\n* `\\u205f` or `&#8287;` (medium mathematical space)\n* `\\u3000` or `&#12288;` (ideographic space)\n\nFor the sake of completeness, the following characters which are not part of `\\s` will also not be affected:\n\n* `\\u200b` or `&#8203;` (zero-width breaking space)\n\nNote: this package does not contain an HTML parser. It is meant to be used on text nodes only.\n\n\n## Installation\n[Node.js](http://nodejs.org/) `>= 8` is required. Type this at the command line:\n```shell\nnpm install normalize-html-whitespace\n```\n\n\n## Usage\n```js\nconst normalizeWhitespace = require('normalize-html-whitespace');\n\nnormalizeWhitespace('  foo bar     baz ');\n//-> ' foo bar baz '\n```\n\n\n[npm-image]: https://img.shields.io/npm/v/normalize-html-whitespace.svg\n[npm-url]: https://npmjs.com/package/normalize-html-whitespace\n[travis-image]: https://img.shields.io/travis/stevenvachon/normalize-html-whitespace.svg\n[travis-url]: https://travis-ci.org/stevenvachon/normalize-html-whitespace\n","publish_time":1551113822046,"_cnpm_publish_time":1551113822046,"dist-tags":{"latest":"1.0.0"}}