{"id":15031843,"url":"https://github.com/jumperbot/whitespace-sifter","last_synced_at":"2025-04-10T00:24:30.592Z","repository":{"id":65123656,"uuid":"582314356","full_name":"JumperBot/whitespace-sifter","owner":"JumperBot","description":"Sift duplicate whitespaces away!","archived":false,"fork":false,"pushed_at":"2024-07-15T12:09:08.000Z","size":2744,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T00:04:34.545Z","etag":null,"topics":["dedup","deduplicator","rust","rust-crate","rust-lang","rust-language","rust-library","sift","string","string-formatting","string-manipulation","text","whitespace-removal"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/whitespace-sifter","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JumperBot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-26T12:35:54.000Z","updated_at":"2025-01-31T01:43:22.000Z","dependencies_parsed_at":"2024-04-10T05:22:35.515Z","dependency_job_id":"7b860824-71ce-49fb-9082-8be595eab586","html_url":"https://github.com/JumperBot/whitespace-sifter","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"176dd883d998e55ccb50c1d2bf89c3feaf602237"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JumperBot%2Fwhitespace-sifter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JumperBot%2Fwhitespace-sifter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JumperBot%2Fwhitespace-sifter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JumperBot%2Fwhitespace-sifter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JumperBot","download_url":"https://codeload.github.com/JumperBot/whitespace-sifter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248132490,"owners_count":21053052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dedup","deduplicator","rust","rust-crate","rust-lang","rust-language","rust-library","sift","string","string-formatting","string-manipulation","text","whitespace-removal"],"created_at":"2024-09-24T20:16:44.205Z","updated_at":"2025-04-10T00:24:30.561Z","avatar_url":"https://github.com/JumperBot.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# whitespace-sifter\n\n![crates.io version](https://img.shields.io/crates/v/whitespace-sifter.svg?label=release)\n![github.com forks](https://img.shields.io/github/forks/JumperBot/whitespace-sifter)\n![github.com stars](https://img.shields.io/github/stars/JumperBot/whitespace-sifter)\n![crates.io downloads](https://img.shields.io/crates/d/whitespace-sifter.svg?label=downloads)\n\n\u003c/div\u003e\n\n---\n\n```rust\nuse whitespace_sifter::WhitespaceSifter;\n// This prints `1.. 2.. 3.. 4.. 5..`.\nprintln!(\n    \"{}\",\n    \"1.. \\n2..  \\n\\r\\n\\n3..   \\n\\n\\n4..    \\n\\n\\r\\n\\n\\n5..     \\n\\n\\n\\n\\n\".sift(),\n);\n\n// This prints `1..\\n2..\\n3..\\n4..\\r\\n5..`.\nprintln!(\n    \"{}\",\n    \"1.. \\n2..  \\n\\r\\n3..   \\n\\n\\n4..    \\r\\n\\n\\r\\n\\n5..     \\n\\n\\n\\n\\n\"\n        .sift_preserve_newlines(),\n);\n```\n\n---\n\n## ✨ Sift Duplicate Whitespaces In One Function Call\n\nThis crate **helps you** remove duplicate [whitespaces](https://doc.rust-lang.org/reference/whitespace.html) within a `string`.  \nIt naturally removes the whitespaces at the start and end of the `string`.\n\n---\n\n## ⚡️Benchmarks\n\nPerformance is a priority; Most updates are performance improvements.  \nThe benchmark uses a transcript of the [Bee Movie](https://movies.fandom.com/wiki/Bee_Movie/Transcript).\n\nExecute these commands to benchmark:\n\n```bash\n$ git clone https://github.com/JumperBot/whitespace-sifter.git\n$ cd whitespace-sifter\n$ cargo bench\n```\n\nYou should only look for results that look like the following:\n\n```bash\nSift/Sift               time:   [159.31 µs 159.60 µs 159.95 µs]\nSift Preserved/Sift Preserved\n                        time:   [198.11 µs 198.21 µs 198.32 µs]\n```\n\nIn just 0.0001 seconds; Pretty impressive, no?  \n\u003cdetails\u003e\n\u003csummary\u003eGo try it on a better machine, I guess.\u003c/summary\u003e\nBenchmark specifications:  \n\u003cul\u003e\n\u003cli\u003eProcessor: Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz 1.90 GHz\u003c/li\u003e\n\u003cli\u003eMemory: RAM 16.0 GB (15.8 GB usable)\u003c/li\u003e\n\u003cli\u003eSystem: GNU/Linux 5.15.153.1-microsoft-standard-WSL2 x86_64\u003c/li\u003e\n\u003c/details\u003e\n\n---\n\n## 📄 Licensing\n\n`whitespace-sifter` is licensed under the [`MIT LICENSE`](./LICENSE); This is the [`summarization`](https://choosealicense.com/licenses/mit/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjumperbot%2Fwhitespace-sifter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjumperbot%2Fwhitespace-sifter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjumperbot%2Fwhitespace-sifter/lists"}