{"_id":"normalize-html-whitespace","_rev":"6-22ec48c32e2d8e82ca7acb57570e0bf1","name":"normalize-html-whitespace","description":"Safely remove repeating whitespace from HTML text.","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"normalize-html-whitespace","description":"Safely remove repeating whitespace from HTML.","version":"0.1.0","license":"MIT","homepage":"https://github.com/stevenvachon/normalize-html-whitespace","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"repository":{"type":"git","url":"git://github.com/stevenvachon/normalize-html-whitespace.git"},"bugs":{"url":"https://github.com/stevenvachon/normalize-html-whitespace/issues"},"devDependencies":{"chai":"^3.4.1","mocha":"^2.3.4"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test --reporter spec --check-leaks --bail"},"files":["index.js","license"],"keywords":["collapse","condense","compact","html","minify","normalize","remove","space","str","string","strip","trim","whitespace"],"gitHead":"9b7b4fd6975e4c3a49170aff1d5f2cb538689ca7","_id":"normalize-html-whitespace@0.1.0","_shasum":"d41b50e6dd0c3503063720862a40296e22ad3762","_from":"git://github.com/stevenvachon/normalize-html-whitespace.git","_resolved":"git://github.com/stevenvachon/normalize-html-whitespace.git#9b7b4fd6975e4c3a49170aff1d5f2cb538689ca7","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"dist":{"shasum":"d41b50e6dd0c3503063720862a40296e22ad3762","tarball":"https://registry.npmjs.org/normalize-html-whitespace/-/normalize-html-whitespace-0.1.0.tgz","integrity":"sha512-Fy15G2P13sllT5pjhIW9Khu8+c+Rm9HE1BlINsFVKlK8lh00fI38JFFOhsQ+U7NVmL8Yh1btbdkI8ehJTAT87A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFYRtjou60oTNIt90r2mGvq7hYuipRVazXFXkq0/43FwIgZ0/Sw89ixGesIZla2ZpkL5NpueefLwqyhEr1ij6y6+E="}]},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"directories":{}},"0.2.0":{"name":"normalize-html-whitespace","description":"Safely remove repeating whitespace from HTML text.","version":"0.2.0","license":"MIT","homepage":"https://github.com/stevenvachon/normalize-html-whitespace","author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"http://www.svachon.com/"},"repository":{"type":"git","url":"git://github.com/stevenvachon/normalize-html-whitespace.git"},"bugs":{"url":"https://github.com/stevenvachon/normalize-html-whitespace/issues"},"devDependencies":{"chai":"^3.4.1","mocha":"^2.3.4"},"engines":{"node":">= 0.10"},"scripts":{"test":"mocha test --reporter spec --check-leaks --bail"},"files":["index.js","license"],"keywords":["collapse","condense","compact","html","minify","normalize","remove","space","str","string","strip","trim","whitespace"],"gitHead":"0740f5e8336bce17a10f3a301e202d1e919b9f3d","_id":"normalize-html-whitespace@0.2.0","_shasum":"101722f6423551c75cdb8f9d104ff850daf1e10e","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.2.0","_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"dist":{"shasum":"101722f6423551c75cdb8f9d104ff850daf1e10e","tarball":"https://registry.npmjs.org/normalize-html-whitespace/-/normalize-html-whitespace-0.2.0.tgz","integrity":"sha512-5CZAEQ4bQi8Msqw0GAT6rrkrjNN4ZKqAG3+jJMwms4O6XoMvh6ekwOueG4mRS1LbPUR1r9EdnhxxfpzMTOdzKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFEMC7O+S/so5dSW5eKwqh3Kp0ocJ9aGZt2u5RELz431AiA1ACxbn6MXc2TwyKGN+8+oV1TY1fUIs8PrfwB15UfnPg=="}]},"maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"directories":{}},"1.0.0":{"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":"https://registry.npmjs.org/normalize-html-whitespace/-/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="}]},"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","maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"time":{"modified":"2022-06-22T05:28:51.938Z","created":"2015-12-12T02:21:40.328Z","0.1.0":"2015-12-12T02:21:40.328Z","0.2.0":"2015-12-15T21:23:23.798Z","1.0.0":"2019-02-25T16:57:02.046Z"},"homepage":"https://github.com/stevenvachon/normalize-html-whitespace#readme","keywords":["collapse","compact","condense","html","minify","normalize","remove","space","str","string","strip","trim","whitespace"],"repository":{"type":"git","url":"git+https://github.com/stevenvachon/normalize-html-whitespace.git"},"author":{"name":"Steven Vachon","email":"contact@svachon.com","url":"https://www.svachon.com/"},"bugs":{"url":"https://github.com/stevenvachon/normalize-html-whitespace/issues"},"license":"MIT","readmeFilename":"README.md"}