{"id":17794190,"url":"https://github.com/pyk/byten","last_synced_at":"2025-03-16T20:31:20.446Z","repository":{"id":20202268,"uuid":"23473666","full_name":"pyk/byten","owner":"pyk","description":"Bit the size of file and turn it into human readable format. Go Package.","archived":false,"fork":false,"pushed_at":"2014-09-25T23:34:02.000Z","size":208,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T13:21:16.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/pyk.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}},"created_at":"2014-08-29T18:31:06.000Z","updated_at":"2024-04-27T03:58:01.000Z","dependencies_parsed_at":"2022-09-07T19:40:28.911Z","dependency_job_id":null,"html_url":"https://github.com/pyk/byten","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyk%2Fbyten","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyk%2Fbyten/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyk%2Fbyten/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyk%2Fbyten/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyk","download_url":"https://codeload.github.com/pyk/byten/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354848,"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":[],"created_at":"2024-10-27T11:15:25.888Z","updated_at":"2025-03-16T20:31:19.946Z","avatar_url":"https://github.com/pyk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"byten\n=====\nBit the size of file and turn it into human readable format. \n\nThis is a Go Package that convert size of file into human readable format.\n\nAnother weekend project by [pyk](http://google.com/+bayualdiyansyah).\n### Usage\nFirst thing first, get the remote package\n```\n$ go get github.com/pyk/byten\n```\nand import package into your project\n```\nimport \"github.com/pyk/byten\"\n```\nthen bite the bytes!\n```\nbyten.Size(1024) # =\u003e 1.0KB\nbyten.Size(206848) # =\u003e 202KB\nbyten.Size(10239999998976) # =\u003e 9.3TB\nbyten.Size(6314666666666665984) # =\u003e 5.5EB\n```\neasy huh? =))\n\n### Docs\n\nNothing fancy, but you can see [here](https://godoc.org/github.com/pyk/byten)\n\n### License\n[MIT License](https://github.com/pyk/byten/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyk%2Fbyten","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyk%2Fbyten","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyk%2Fbyten/lists"}