{"id":19063346,"url":"https://github.com/niamster/unbytify","last_synced_at":"2025-04-26T12:29:31.919Z","repository":{"id":57671040,"uuid":"91833405","full_name":"niamster/unbytify","owner":"niamster","description":"Convert units of digital information from string into the numeric equivalent and the other way around","archived":false,"fork":false,"pushed_at":"2020-02-15T22:47:57.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-17T05:03:46.532Z","etag":null,"topics":["butify","bytes","convert","crate","format","humanize","parse","rust","unbytify","units"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/niamster.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":"2017-05-19T18:15:31.000Z","updated_at":"2020-02-15T22:48:00.000Z","dependencies_parsed_at":"2022-09-26T20:41:26.523Z","dependency_job_id":null,"html_url":"https://github.com/niamster/unbytify","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/niamster%2Funbytify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niamster%2Funbytify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niamster%2Funbytify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niamster%2Funbytify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niamster","download_url":"https://codeload.github.com/niamster/unbytify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250803889,"owners_count":21490169,"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":["butify","bytes","convert","crate","format","humanize","parse","rust","unbytify","units"],"created_at":"2024-11-09T00:34:01.460Z","updated_at":"2025-04-25T10:49:21.661Z","avatar_url":"https://github.com/niamster.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Crates.io](https://img.shields.io/crates/v/unbytify.svg)](https://crates.io/crates/unbytify)\n[![Docs.rs](https://docs.rs/unbytify/badge.svg)](https://docs.rs/unbytify)\n[![Linux Build Status](https://travis-ci.org/niamster/unbytify.svg?branch=master)](https://travis-ci.org/niamster/unbytify)\n[![Windows Build Status](https://ci.appveyor.com/api/projects/status/ljd6pkh8fsx7oh7a/branch/master?svg=true)](https://ci.appveyor.com/project/niamster/unbytify)\n[![Codecov](https://codecov.io/gh/niamster/unbytify/branch/master/graph/badge.svg)](https://codecov.io/gh/niamster/unbytify)\n[![Coveralls](https://coveralls.io/repos/github/niamster/unbytify/badge.svg?branch=master)](https://coveralls.io/github/niamster/unbytify?branch=master)\n[![License](https://img.shields.io/crates/l/unbytify.svg)](https://opensource.org/licenses/Apache-2.0)\n\n\n# Unbytify - [Rust][rust] library to parse and represent digital units\n\n### Table of Contents\n\n* [Introduction](#introduction)\n* [`unbytify` crate in your project](#in-your-project)\n* [Usage](#usage)\n* [License](#license)\n* [Credits](#credits)\n\n### Introduction\n\nUnbytify converts KiB, MiB, etc. into integer and the other way around.\n\nSometimes people call this humanization.\n\n### In your project\n\nIn Cargo.toml:\n\n```toml\n[dependencies]\nunbytify = \"0.2\"\n```\n\n### Usage\n\nIn your `main.rs`:\n\n```rust\nextern crate unbytify;\nuse unbytify::*;\n\nfn main() {\n    assert_eq!(unbytify(\"1.5K\"), Ok(1024 + 512));\n    assert_eq!(bytify(1024 + 512), (1.5, \"KiB\"));\n}\n```\n\n### Documentation\n\nMost of the useful documentation can be gotten using rustdoc.\n\nCheck it out on [docs.rs/unbytify](https://docs.rs/unbytify).\n\n### License\nUnbytify project is licensed under Apache-2.0 license.\n\n[rust]: http://rust-lang.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniamster%2Funbytify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniamster%2Funbytify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniamster%2Funbytify/lists"}