{"id":18546548,"url":"https://github.com/saveourtool/okio-extras","last_synced_at":"2025-10-07T11:05:06.134Z","repository":{"id":71724441,"uuid":"604687354","full_name":"saveourtool/okio-extras","owner":"saveourtool","description":"A set of extensions to Okio, check out https://saveourtool.github.io/okio-extras/","archived":false,"fork":false,"pushed_at":"2025-01-03T23:11:41.000Z","size":666,"stargazers_count":13,"open_issues_count":9,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T11:12:56.064Z","etag":null,"topics":["io","kotlin-multiplatform","kotlin-multiplatform-library","library","okio"],"latest_commit_sha":null,"homepage":"https://saveourtool.github.io/okio-extras/","language":"Kotlin","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/saveourtool.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-02-21T15:28:26.000Z","updated_at":"2024-10-18T08:29:29.000Z","dependencies_parsed_at":"2023-12-01T16:26:44.179Z","dependency_job_id":"1e2d69a0-b258-43af-ab8e-5f7e976d46ef","html_url":"https://github.com/saveourtool/okio-extras","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saveourtool%2Fokio-extras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saveourtool%2Fokio-extras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saveourtool%2Fokio-extras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saveourtool%2Fokio-extras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saveourtool","download_url":"https://codeload.github.com/saveourtool/okio-extras/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248107199,"owners_count":21048876,"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":["io","kotlin-multiplatform","kotlin-multiplatform-library","library","okio"],"created_at":"2024-11-06T20:25:53.298Z","updated_at":"2025-10-07T11:05:01.100Z","avatar_url":"https://github.com/saveourtool.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"= okio-extras\n:toc:\n\n[.float-group]\n--\n[.left]\nimage::https://img.shields.io/badge/License-MIT-yellow.svg[License: MIT,link=\"https://opensource.org/licenses/MIT\"]\n\n[.left]\nimage::https://github.com/saveourtool/okio-extras/actions/workflows/build.yml/badge.svg?branch=master[,link=\"https://github.com/saveourtool/okio-extras/actions/workflows/build.yml?query=branch%3Amaster\"]\n\n[.left]\nimage::https://badgen.net/github/release/saveourtool/okio-extras/latest?color=green[GitHub release,link=https://github.com/saveourtool/okio-extras/releases/latest]\n--\n\nA set of extensions to https://square.github.io/okio/[_Okio_].\n\nSee the https://saveourtool.github.io/okio-extras[project website] for\ndocumentation and APIs.\n\n== Features\n\nAmong other useful multiplatform extensions, which are modelled after `kotlin.io`\nAPI available on the JVM, the library provides a way to convert a file system\npath to a `file://` URI and vice versa:\n\n[source,kotlin]\n----\n// Will print \"file:/C:/Windows/\"\nprintln(\"C:\\\\Windows\".toPath().toFileUri())\n\n// Will print \"C:\\Program Files\"\nprintln(Uri(\"file:///C:/Program%20Files\").toLocalPath().pathString)\n----\n\nUNC paths are supported on _Windows_:\n\n[source,kotlin]\n----\n// Will print \"\\\\127.0.0.1\\C$\\Windows\"\nprintln(Uri(\"file:////127.0.0.1/C$/Windows\").toLocalPath().pathString)\n\n// Will print \"\\\\WSL$\\Debian\\etc\\passwd\"\nprintln(Uri(\"file:////WSL$/Debian/etc/passwd\").toLocalPath().pathString)\n----\n\nIPv6 addresses are parsed correctly:\n\n[source,kotlin]\n----\n// Will print \"\\\\--1.ipv6-literal.net\\C$\\Windows\"\nprintln(Uri(\"file://[::1]/C$/Windows\").toLocalPath().pathString)\n----\n\n== Releases\n\nThe latest release is available from _GitHub Packages_.\n\nFor `build.gradle.kts`:\n\n[source,kotlin]\n----\nrepositories {\n    maven {\n        name = \"saveourtool/okio-extras\"\n        url = uri(\"https://maven.pkg.github.com/saveourtool/okio-extras\")\n        credentials {\n            username = project.findProperty(\"gpr.user\") as String? ?: System.getenv(\"GITHUB_ACTOR\")\n            password = project.findProperty(\"gpr.key\") as String? ?: System.getenv(\"GITHUB_TOKEN\")\n        }\n    }\n}\n----\n\nFor `settings.gradle.kts`:\n\n[source,kotlin]\n----\ndependencyResolutionManagement {\n    repositories {\n        maven {\n            name = \"saveourtool/okio-extras\"\n            url = uri(\"https://maven.pkg.github.com/saveourtool/okio-extras\")\n            credentials {\n                username = providers.gradleProperty(\"gpr.user\").orNull\n                    ?: System.getenv(\"GITHUB_ACTOR\")\n                password = providers.gradleProperty(\"gpr.key\").orNull\n                    ?: System.getenv(\"GITHUB_TOKEN\")\n            }\n        }\n    }\n}\n----\n\nThen add the dependency as usual:\n\n[source,kotlin]\n----\ndependencies {\n    implementation(\"com.saveourtool:okio-extras:1.1.1\")\n}\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaveourtool%2Fokio-extras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaveourtool%2Fokio-extras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaveourtool%2Fokio-extras/lists"}