{"_id":"selective-whitespace","_rev":"8-afd7509cee53808e7ca09c1fadc259e8","name":"selective-whitespace","description":"Condense all string whitespace + options to preserve specific whitespace characters.","dist-tags":{"latest":"1.0.4"},"versions":{"0.0.1":{"name":"selective-whitespace","version":"0.0.1","description":"Condense all whitespace in a string, with options to preserve specific whitespace characters.","main":"index.js","scripts":{"test":"ava"},"repository":{"type":"git","url":"git+https://github.com/radiovisual/selective-whitespace.git"},"files":["index.js"],"keywords":["trim","strip","condense","whitespace","characters","all","options","preserve","keep","tabs","newlines","newline","tab","\\n","\\r","\\s"],"author":{"name":"Michael Wuergler","email":"senjudev@gmail.com","url":"http://numetriclabs.com"},"license":"MIT","bugs":{"url":"https://github.com/radiovisual/selective-whitespace/issues"},"homepage":"https://github.com/radiovisual/selective-whitespace#readme","dependencies":{"ava":"^0.7.0","tokenize-whitespace":"0.0.1"},"gitHead":"c94ca974c2ba6eee097c34abd697689b93866273","_id":"selective-whitespace@0.0.1","_shasum":"0b9baaa22e7d1778d4937979ea9df411e7a2fffc","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"radiovisual","email":"senjudev@gmail.com"},"dist":{"shasum":"0b9baaa22e7d1778d4937979ea9df411e7a2fffc","tarball":"https://registry.npmjs.org/selective-whitespace/-/selective-whitespace-0.0.1.tgz","integrity":"sha512-gKvKhTKzxDFNAKKNm7WlYmdlqMMa0bQQbqLEymkRez4VT5hGKRAcOoZwH3/Qnsdzg8BCSGZylFcBimbAYWGA5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAx8M8cEro77cZ5pYYO7QSn4LRoRVnAvx81H9u2uBd8uAiAksC13WVQOIeMLqyZ5uG7bkPzq8PyBAWVjDoc3X1eNKw=="}]},"maintainers":[{"name":"radiovisual","email":"senjudev@gmail.com"}]},"1.0.0":{"name":"selective-whitespace","version":"1.0.0","description":"Condense all whitespace in a string, with options to preserve specific whitespace characters.","main":"index.js","scripts":{"test":"ava"},"repository":{"type":"git","url":"git+https://github.com/radiovisual/selective-whitespace.git"},"files":["index.js"],"keywords":["trim","strip","condense","whitespace","characters","all","options","preserve","keep","tabs","newlines","newline","tab","\\n","\\r","\\s"],"author":{"name":"Michael Wuergler","email":"senjudev@gmail.com","url":"http://numetriclabs.com"},"license":"MIT","bugs":{"url":"https://github.com/radiovisual/selective-whitespace/issues"},"homepage":"https://github.com/radiovisual/selective-whitespace#readme","dependencies":{"tokenize-whitespace":"0.0.1"},"devDependencies":{"ava":"^0.7.0"},"gitHead":"8f7fa2e721ee07c50ec1b8583306e1e03c9ff1c1","_id":"selective-whitespace@1.0.0","_shasum":"fa23fa1d98507b6093f0d4558a61f565df980df9","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"radiovisual","email":"senjudev@gmail.com"},"dist":{"shasum":"fa23fa1d98507b6093f0d4558a61f565df980df9","tarball":"https://registry.npmjs.org/selective-whitespace/-/selective-whitespace-1.0.0.tgz","integrity":"sha512-JIlsMVbNHUWJtnwcLAHvyRLYdQZ4A/JKpT6b3O+TUHw7Bv0YVm3/DYYCj39cDBgHGB3KwCWINUldYydQq8162Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOgO9SjsBq1QMpUwLDKR8C7wAF1vK9Qu9zsVus0z96xgIgcOZQ5S9wMEUzq3ZKzuwsI59L78OEBMGzr78s+6bDvqo="}]},"maintainers":[{"name":"radiovisual","email":"senjudev@gmail.com"}]},"1.0.1":{"name":"selective-whitespace","version":"1.0.1","description":"Condense all whitespace in a string, with options to preserve specific whitespace characters.","main":"index.js","scripts":{"test":"ava"},"repository":{"type":"git","url":"git+https://github.com/radiovisual/selective-whitespace.git"},"files":["index.js"],"keywords":["trim","strip","condense","whitespace","characters","all","options","preserve","keep","tabs","newlines","newline","tab","\\n","\\r","\\s"],"author":{"name":"Michael Wuergler","email":"senjudev@gmail.com","url":"http://numetriclabs.com"},"license":"MIT","bugs":{"url":"https://github.com/radiovisual/selective-whitespace/issues"},"homepage":"https://github.com/radiovisual/selective-whitespace#readme","dependencies":{"tokenize-whitespace":"0.0.1"},"devDependencies":{"ava":"^0.7.0"},"gitHead":"3f6d6d01fc277ac27f175e97537d3eac8d6879c8","_id":"selective-whitespace@1.0.1","_shasum":"ee4411132dd8449627d3bb275359b521cfde81ee","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.2.6","_npmUser":{"name":"radiovisual","email":"senjudev@gmail.com"},"dist":{"shasum":"ee4411132dd8449627d3bb275359b521cfde81ee","tarball":"https://registry.npmjs.org/selective-whitespace/-/selective-whitespace-1.0.1.tgz","integrity":"sha512-2M6hXx5o8FDrTq6lNQs2dTyM5+EivSCWTTYG1Uu9EbfsvuKGpMAhK9RFSIyY0SurPTIIFdbGhBnS2c7c5Ng/1A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2DECjkP/NlxfyMw22Jx48o6qGcRB9kR/kVPi77Zq9BAIhAK2QX24G4g7oRrAZQI20YEJmvM9iTd8MI4LU9rHYXydW"}]},"maintainers":[{"name":"radiovisual","email":"senjudev@gmail.com"}]},"1.0.2":{"name":"selective-whitespace","version":"1.0.2","description":"Condense all whitespace in a string, with options to preserve specific whitespace characters.","main":"index.js","scripts":{"test":"xo & ava"},"repository":{"type":"git","url":"git+https://github.com/radiovisual/selective-whitespace.git"},"files":["index.js"],"keywords":["trim","strip","condense","whitespace","characters","all","options","preserve","keep","tabs","newlines","newline","tab","\\n","\\r","\\s"],"author":{"name":"Michael Wuergler","email":"senjudev@gmail.com","url":"http://numetriclabs.com"},"license":"MIT","bugs":{"url":"https://github.com/radiovisual/selective-whitespace/issues"},"homepage":"https://github.com/radiovisual/selective-whitespace#readme","dependencies":{"tokenize-whitespace":"0.0.1"},"devDependencies":{"ava":"^0.7.0","xo":"^0.12.1"},"gitHead":"b5557450b2483b320d257233e4e481c67a509596","_id":"selective-whitespace@1.0.2","_shasum":"5900012e7afa115cd224cd4a5b110f1c2dce2105","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.2.6","_npmUser":{"name":"radiovisual","email":"senjudev@gmail.com"},"dist":{"shasum":"5900012e7afa115cd224cd4a5b110f1c2dce2105","tarball":"https://registry.npmjs.org/selective-whitespace/-/selective-whitespace-1.0.2.tgz","integrity":"sha512-QC3krNoX77vIYgphFVflfjhObYRqkVlFYch2i40KtTDoZg8dw8JEMb3vAmU5NfBBPUIykv3RaXrI3IbO87enRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFEAtbREZbgXysNYyiGOQTeQNRjFF0tKTHHeI6TzXPVIAiEAyiWb43Vh7eefPWaM/kZ52ZPsoYz0FeJPHKI5nv4eCcw="}]},"maintainers":[{"name":"radiovisual","email":"senjudev@gmail.com"}]},"1.0.3":{"name":"selective-whitespace","version":"1.0.3","description":"Condense all string whitespace + options to preserve specific whitespace characters.","main":"index.js","scripts":{"test":"xo & ava"},"repository":{"type":"git","url":"git+https://github.com/radiovisual/selective-whitespace.git"},"files":["index.js"],"keywords":["trim","strip","condense","whitespace","characters","all","options","preserve","keep","tabs","newlines","newline","tab","\\n","\\r","\\s"],"author":{"name":"Michael Wuergler","email":"senjudev@gmail.com","url":"http://numetriclabs.com"},"license":"MIT","bugs":{"url":"https://github.com/radiovisual/selective-whitespace/issues"},"homepage":"https://github.com/radiovisual/selective-whitespace#readme","dependencies":{"tokenize-whitespace":"0.0.1"},"devDependencies":{"ava":"^0.7.0","xo":"^0.12.1"},"gitHead":"39e7c87d2fb6869d8c4641a3ba223322242105fa","_id":"selective-whitespace@1.0.3","_shasum":"26aa5bbe7dead0c32bde3c60eea1e0a3e00b2dfb","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.2.6","_npmUser":{"name":"radiovisual","email":"senjudev@gmail.com"},"dist":{"shasum":"26aa5bbe7dead0c32bde3c60eea1e0a3e00b2dfb","tarball":"https://registry.npmjs.org/selective-whitespace/-/selective-whitespace-1.0.3.tgz","integrity":"sha512-WAEzLit1SQM647Cy0yuijBikWrKWEfhRWof3dbfUmBIYYHCnho0YwCkJc9N6MECTG/QAVAF+oyRF1hKIkUZHuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3OsH1+0/5cDFD0cWUeGqWr0YkugFu1/qC9xTEC6aNqAIgaA0M0intNVwUpcWdCd0W8+1hMbM4nRcNL+FE4uB0c20="}]},"maintainers":[{"name":"radiovisual","email":"senjudev@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/selective-whitespace-1.0.3.tgz_1457110795761_0.663713120855391"}},"1.0.4":{"name":"selective-whitespace","version":"1.0.4","description":"Condense all string whitespace + options to preserve specific whitespace characters.","main":"index.js","scripts":{"test":"xo & ava"},"repository":{"type":"git","url":"git+https://github.com/radiovisual/selective-whitespace.git"},"files":["index.js"],"keywords":["trim","strip","condense","whitespace","characters","all","options","preserve","keep","tabs","newlines","newline","return","character","selective","choose","tab","\\n","\\r","\\s"],"author":{"name":"Michael Wuergler","email":"senjudev@gmail.com","url":"http://numetriclabs.com"},"license":"MIT","bugs":{"url":"https://github.com/radiovisual/selective-whitespace/issues"},"homepage":"https://github.com/radiovisual/selective-whitespace#readme","dependencies":{"tokenize-whitespace":"0.0.1"},"devDependencies":{"ava":"^0.7.0","xo":"^0.12.1"},"gitHead":"520123a70270ce6816fa5054cd96ad86594ddaab","_id":"selective-whitespace@1.0.4","_shasum":"02d428b46b2c770398be9a538eb442b1e842fc5c","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"radiovisual","email":"senjudev@gmail.com"},"dist":{"shasum":"02d428b46b2c770398be9a538eb442b1e842fc5c","tarball":"https://registry.npmjs.org/selective-whitespace/-/selective-whitespace-1.0.4.tgz","integrity":"sha512-DyL/pLbb9poQNQOVndVohclAO8lq+6gEBW8q3H9c2fX+ODkugQMvjBilPjw09lrIuVRFRQ/nwhLdzn60sFh9lQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDZ/jLcksWjhCQEzlmQ9KGEy/Wm/MTr9xftegizTDQK4AiEA4mfDkyBNgnXxQz2vvWAf1e9TwFde1iCsbAAHMyVTRa8="}]},"maintainers":[{"name":"radiovisual","email":"senjudev@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/selective-whitespace-1.0.4.tgz_1462272226635_0.5436897787731141"}}},"readme":"# selective-whitespace [![Build Status](https://travis-ci.org/radiovisual/selective-whitespace.svg)](https://travis-ci.org/radiovisual/selective-whitespace)\n\n> Condense all whitespace in a string, with options to preserve specific whitespace characters.\n\n## Install\n\n```\n$ npm install --save selective-whitespace\n```\n\n\n## Usage\n\n```js\nvar selectiveWhitespace = require('selective-whitespace');\n\n// Condense all whitespace (including \\t\\n\\r)\nselectiveWhitespace('  FOO      BAR    BAZ ');\n//=> 'FOO BAR BAZ'\n\n// Condense all whitespace (keep newlines)\nselectiveWhitespace('FOO\\n   BAR\\n   BAZ\\n ', {keep: '\\n'});\n//=> 'FOO\\n BAR\\n BAZ\\n'\n\n// Condense all whitespace (keep tabs)\nselectiveWhitespace('\\tFOO     \\tBAR      \\tBAZ', {keep: '\\t'});\n//=> '\\tFOO \\tBAR \\tBAZ'\n\n// Condense all whitespace (keep tabs and newlines)\nselectiveWhitespace('\\n\\tFOO     \\n\\tBAR      \\n\\tBAZ', {keep: '\\t,\\n'});\n//=> '\\n\\tFOO \\n\\tBAR \\n\\tBAZ'\n\n// Strip all whitespace characters\nselectiveWhitespace('\\t\\nFOO     \\t\\nBAR      \\t\\nBAZ', {stripAll:true});\n//=> 'FOOBARBAZ'\n```\n\n\n## API\n\n### selectiveWhitespace(str, [options]);\n\n#### str\n\n*Required*    \nType: `string`    \n\nThe string you want to condense.\n\n#### options\n \nType: `object`  \n\nSet or override the default options.\n  \n##### keep\n \nType: `string`  \noptions: `\\n\\t\\r`  \n\nComma or pipe-delimited list of values to preserve. You can preserve newlines `\\n`, tabs `\\t` or return characters `\\r`. \n\n##### stripAll \n\nType: `Boolean`  \nDefault: `false`  \n  \n`stripAll` mode will remove **all** whitespace characters from the string.\n\n\n\n## License\n\nMIT © [Michael Wuergler](http://numetriclabs.com)\n","maintainers":[{"name":"radiovisual","email":"senjudev@gmail.com"}],"time":{"modified":"2022-06-26T17:23:54.952Z","created":"2015-12-06T03:35:32.016Z","0.0.1":"2015-12-06T03:35:32.016Z","1.0.0":"2015-12-17T15:39:05.875Z","1.0.1":"2016-01-28T14:43:12.516Z","1.0.2":"2016-02-01T09:57:53.298Z","1.0.3":"2016-03-04T16:59:59.240Z","1.0.4":"2016-05-03T10:43:49.011Z"},"homepage":"https://github.com/radiovisual/selective-whitespace#readme","keywords":["trim","strip","condense","whitespace","characters","all","options","preserve","keep","tabs","newlines","newline","return","character","selective","choose","tab","\\n","\\r","\\s"],"repository":{"type":"git","url":"git+https://github.com/radiovisual/selective-whitespace.git"},"author":{"name":"Michael Wuergler","email":"senjudev@gmail.com","url":"http://numetriclabs.com"},"bugs":{"url":"https://github.com/radiovisual/selective-whitespace/issues"},"license":"MIT","readmeFilename":"readme.md"}