{"id":20122868,"url":"https://github.com/freaky/osstrops","last_synced_at":"2026-06-10T05:31:49.591Z","repository":{"id":142942551,"uuid":"200127860","full_name":"Freaky/osstrops","owner":"Freaky","description":"Safe cross-platform string operations on OsStr","archived":false,"fork":false,"pushed_at":"2019-08-01T23:10:01.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T20:30:45.190Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Freaky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2019-08-01T22:43:29.000Z","updated_at":"2019-08-01T23:10:02.000Z","dependencies_parsed_at":"2023-04-07T07:01:17.203Z","dependency_job_id":null,"html_url":"https://github.com/Freaky/osstrops","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Freaky/osstrops","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fosstrops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fosstrops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fosstrops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fosstrops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freaky","download_url":"https://codeload.github.com/Freaky/osstrops/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freaky%2Fosstrops/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34139178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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-11-13T19:41:34.008Z","updated_at":"2026-06-10T05:31:49.571Z","avatar_url":"https://github.com/Freaky.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OsStrOps\n\nSome basic string operations on OsStr.\n\nOn Unix, this always operates on bytes, on Windows it tries to operate on `str`,\nbut will fall back on `Vec\u003cu16\u003e` using encode/decode_wide() if necessary.\n\n```rust\nuse osstrops::OsStrOps;\n\nfn main() -\u003e std::io::Result\u003c()\u003e {\n    for arg in std::env::args_os() {\n        let argop = OsStrOps::from(\u0026arg);\n\n        if argop.starts_with(\"--path=\") {\n            if let (_, Some(path)) = argop.split_at_byte(b'=') {\n                println!(\"Path: {}\", path.to_string_lossy());\n                let _file = std::fs::File::open(path)?;\n            }\n        }\n    }\n\n    Ok(())\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaky%2Fosstrops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreaky%2Fosstrops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreaky%2Fosstrops/lists"}