{"id":33904616,"url":"https://github.com/gechandesu/dataunits","last_synced_at":"2026-03-09T08:02:01.974Z","repository":{"id":269608047,"uuid":"907976980","full_name":"gechandesu/dataunits","owner":"gechandesu","description":"Data size units converter","archived":false,"fork":false,"pushed_at":"2025-12-25T23:39:52.000Z","size":24,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-27T09:52:01.643Z","etag":null,"topics":["units","units-converter","vlang","vlang-module","vlang-package"],"latest_commit_sha":null,"homepage":"https://gechandesu.github.io/dataunits/","language":"V","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gechandesu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-24T18:55:43.000Z","updated_at":"2025-12-25T23:39:50.000Z","dependencies_parsed_at":"2025-03-29T18:25:51.323Z","dependency_job_id":"9070a0b5-0db4-443c-9030-b5113c575acc","html_url":"https://github.com/gechandesu/dataunits","commit_stats":null,"previous_names":["gechandesu/dataunits"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gechandesu/dataunits","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gechandesu%2Fdataunits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gechandesu%2Fdataunits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gechandesu%2Fdataunits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gechandesu%2Fdataunits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gechandesu","download_url":"https://codeload.github.com/gechandesu/dataunits/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gechandesu%2Fdataunits/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30287446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["units","units-converter","vlang","vlang-module","vlang-package"],"created_at":"2025-12-12T01:25:27.720Z","updated_at":"2026-03-09T08:02:01.957Z","avatar_url":"https://github.com/gechandesu.png","language":"V","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Data Unit Converter\n\nInstallation:\n\n```\nv install https://github.com/gechandesu/dataunits\n```\n\nExample:\n\n```v\nimport dataunits\n\nfn main() {\n\t// convert via convert fn\n\tkilobytes := dataunits.convert(500, dataunits.mbit, dataunits.kb)\n\tprintln(kilobytes) // 62500.0\n\n\t// convert via DataSize method (the arguments order matters)\n\tmebibytes := (dataunits.gib * 15).mib()\n\tprintln(mebibytes) // 15360.0\n\n\t// convert via DataSize method with explicit type cast\n\tbytes := dataunits.DataSize(2000 * dataunits.gib).byte()\n\tprintln(bytes) // 2.147483648e+12 == 2147483648000\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgechandesu%2Fdataunits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgechandesu%2Fdataunits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgechandesu%2Fdataunits/lists"}