{"id":13459463,"url":"https://github.com/superbytess/superbytes","last_synced_at":"2025-03-24T18:30:42.693Z","repository":{"id":40625828,"uuid":"127640769","full_name":"superbytess/superbytes","owner":"superbytess","description":"Convert bytes to a human readable string format","archived":false,"fork":false,"pushed_at":"2023-11-12T12:23:28.000Z","size":365,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T05:39:42.568Z","etag":null,"topics":["1024","bytes","convert","convert-bytes","convertion","file","filesize","format","human","readable","si","size","super"],"latest_commit_sha":null,"homepage":"","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/superbytess.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-01T15:15:43.000Z","updated_at":"2024-06-19T06:11:37.944Z","dependencies_parsed_at":"2024-06-19T06:11:33.951Z","dependency_job_id":"0242ebbe-accd-4288-99e9-5a9420ac8bef","html_url":"https://github.com/superbytess/superbytes","commit_stats":{"total_commits":37,"total_committers":1,"mean_commits":37.0,"dds":0.0,"last_synced_commit":"bde0c5893a2f680556060bd31fc2d51a7a3416f5"},"previous_names":["damianpolak/superbytes"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbytess%2Fsuperbytes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbytess%2Fsuperbytes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbytess%2Fsuperbytes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/superbytess%2Fsuperbytes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/superbytess","download_url":"https://codeload.github.com/superbytess/superbytes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221964277,"owners_count":16908642,"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":["1024","bytes","convert","convert-bytes","convertion","file","filesize","format","human","readable","si","size","super"],"created_at":"2024-07-31T10:00:17.518Z","updated_at":"2024-10-29T05:31:02.675Z","avatar_url":"https://github.com/superbytess.png","language":"TypeScript","funding_links":[],"categories":["Bytes"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eSuperbytes\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eSuperbytes is a Node.js library for converting bytes to human readable string format\u003c/b\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\n![npm](https://img.shields.io/npm/dw/superbytes) ![npm](https://img.shields.io/npm/v/superbytes) ![NPM](https://img.shields.io/npm/l/superbytes) ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/superbytess/superbytes/node.js.yml)\n![GitHub contributors](https://img.shields.io/github/contributors/superbytess/superbytes)\n\n\n\n## Description\nSuperbytes will help you convert bytes into other units understandable for humans. The library automatically converts bytes and returns a string with the most optimal unit representation. The library also allows you to set the precision of numbers following the decimal point and choose the output metric in the form of either the IEC standard (1024 bytes = 1 kibibyte) or SI (1000 bytes = 1 kilobyte).\n\nBy default superbytes converts to IEC units.\n\nThe current version supports loading library using both CommonJS and ESModules.\n\n## Installation\n\nLatest version:\n```bash\nnpm i superbytes@latest\n```\n\n## Usage\n\n### Loading using CommonJS\n\n```javascript\nconst { superbytes } = require('superbytes');\n\nsuperbytes(423551030);\n// returns '403.93 MiB'\nsuperbytes(423551030, 3);\n// returns '403.930 MiB'\nsuperbytes(72355103011, { metric: 'si'});\n// returns '72.36 GB'\nsuperbytes(3123123, { precision: 5});\n// returns '2.97844 MiB'\nsuperbytes(912839123, { metric: 'si', precision: 5});\n// returns '912.83912 MB'\n```\n\n### Loading using ES modules\n\n```javascript\nimport { superbytes } from 'superbytes';\n\nsuperbytes(423551030);\n// returns '403.93 MiB'\nsuperbytes(423551030, 3);\n// returns '403.930 MiB'\nsuperbytes(72355103011, { metric: 'si'});\n// returns '72.36 GB'\nsuperbytes(3123123, { precision: 5});\n// returns '2.97844 MiB'\nsuperbytes(912839123, { metric: 'si', precision: 5});\n// returns '912.83912 MB'\n```\n\n## License\n\nMIT © Damian Polak\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbytess%2Fsuperbytes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuperbytess%2Fsuperbytes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuperbytess%2Fsuperbytes/lists"}