{"id":17802667,"url":"https://github.com/stefee/outerspace-rs","last_synced_at":"2025-07-31T04:11:34.498Z","repository":{"id":57650910,"uuid":"346408833","full_name":"stefee/outerspace-rs","owner":"stefee","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-23T11:49:11.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-25T16:26:15.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stefee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-10T15:52:02.000Z","updated_at":"2021-10-23T11:49:14.000Z","dependencies_parsed_at":"2022-08-27T23:22:22.465Z","dependency_job_id":null,"html_url":"https://github.com/stefee/outerspace-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stefee/outerspace-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefee%2Fouterspace-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefee%2Fouterspace-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefee%2Fouterspace-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefee%2Fouterspace-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefee","download_url":"https://codeload.github.com/stefee/outerspace-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefee%2Fouterspace-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267986112,"owners_count":24176574,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-27T12:44:06.866Z","updated_at":"2025-07-31T04:11:34.472Z","avatar_url":"https://github.com/stefee.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# outerspace-rs\n\n[![Crates.io version](https://img.shields.io/crates/v/outerspace.svg?style=flat-square)](https://crates.io/crates/outerspace)\n[![Crates.io downloads](https://img.shields.io/crates/d/outerspace.svg?style=flat-square)](https://crates.io/crates/outerspace)\n[![docs.rs docs](https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square)](https://docs.rs/outerspace)\n\nThis is the Rust version of the [outerspace JavaScript package](https://www.npmjs.com/package/outerspace).\n\nMethods for prefixing and suffixing the non-whitespace characters in a string.\n\n# Examples\n\n```rust\nlet prefixed = outerspace::prefix_non_whitespace(\"\\n\\nHello hello\\n\\n\", \"\u003e \");\nassert_eq!(prefixed, \"\\n\\n\u003e Hello hello\\n\\n\");\n```\n\n```rust\nlet suffixed = outerspace::suffix_non_whitespace(\"\\n\\nHello hello\\n\\n\", \"!\");\nassert_eq!(suffixed, \"\\n\\nHello hello!\\n\\n\");\n```\n\n```rust\nlet wrapped = outerspace::wrap_non_whitespace(\"\\n\\nHello hello\\n\\n\", \"**\", \"**\");\nassert_eq!(wrapped, \"\\n\\n**Hello hello**\\n\\n\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefee%2Fouterspace-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefee%2Fouterspace-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefee%2Fouterspace-rs/lists"}