{"id":25859148,"url":"https://github.com/bikossor/snakebyte","last_synced_at":"2025-09-07T14:45:42.869Z","repository":{"id":33392049,"uuid":"158031506","full_name":"Bikossor/snakebyte","owner":"Bikossor","description":"JavaScript library to convert between different byte units","archived":false,"fork":false,"pushed_at":"2024-07-09T19:42:53.000Z","size":2177,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T12:12:08.777Z","etag":null,"topics":["byte","byte-units","convert","converter"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/snakebyte","language":"TypeScript","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/Bikossor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2018-11-17T22:50:29.000Z","updated_at":"2024-07-09T19:42:52.000Z","dependencies_parsed_at":"2023-01-15T00:43:29.910Z","dependency_job_id":"47f508cf-e197-4363-ac18-27177922315e","html_url":"https://github.com/Bikossor/snakebyte","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bikossor%2Fsnakebyte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bikossor%2Fsnakebyte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bikossor%2Fsnakebyte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bikossor%2Fsnakebyte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bikossor","download_url":"https://codeload.github.com/Bikossor/snakebyte/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241423006,"owners_count":19960607,"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":["byte","byte-units","convert","converter"],"created_at":"2025-03-01T20:39:43.098Z","updated_at":"2025-03-01T20:39:43.610Z","avatar_url":"https://github.com/Bikossor.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snakebyte\n\nConvert between different byte units\n\n[![Node.js CI](https://github.com/Bikossor/snakebyte/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/Bikossor/snakebyte/actions/workflows/node.js.yml)\n![npm bundle size](https://img.shields.io/bundlephobia/minzip/snakebyte.svg)\n![npm](https://img.shields.io/npm/dm/snakebyte.svg)\n![GitHub issues](https://img.shields.io/github/issues/bikossor/snakebyte.svg)\n![GitHub](https://img.shields.io/github/license/bikossor/snakebyte.svg)\n\n## Installation\n\n### Node.js environment\n\n```\nnpm i snakebyte\n```\n\n### Browser environment\n\nDownload the latest version of snakebyte [here](https://github.com/Bikossor/snakebyte/releases/latest).\n\n## Usage\n\n### Node.js environment\n\n```javascript\nconst { snakebyte } = require(\"snakebyte\");\n\nconst kilobyteToMegabyte = snakebyte({\n  from: \"Kilobyte\", // optional, defaults to \"Byte\"\n  to: \"Megabyte\",\n  fractions: 2, // optional, defaults to 3\n});\n\nkilobyteToMegabyte(1000);\n// =\u003e 1\n```\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags](https://github.com/bikossor/snakebyte/tags) on this repository.\n\n## Authors\n\n- [Bikossor](https://github.com/Bikossor)\n\nSee also the list of [contributors](https://github.com/bikossor/snakebyte/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see [here](LICENSE) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbikossor%2Fsnakebyte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbikossor%2Fsnakebyte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbikossor%2Fsnakebyte/lists"}