{"id":23826040,"url":"https://github.com/coderaiser/format-io","last_synced_at":"2025-09-07T08:31:36.003Z","repository":{"id":18142045,"uuid":"21233535","full_name":"coderaiser/format-io","owner":"coderaiser","description":"Node library for format size, permissions, etc.","archived":false,"fork":false,"pushed_at":"2021-01-08T15:48:33.000Z","size":29,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-03T16:02:44.410Z","etag":null,"topics":["cloudcmd","format","javascript","nodejs","permissions","size"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/coderaiser.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","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-06-26T08:26:56.000Z","updated_at":"2021-01-08T15:48:36.000Z","dependencies_parsed_at":"2022-08-29T05:00:28.006Z","dependency_job_id":null,"html_url":"https://github.com/coderaiser/format-io","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fformat-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fformat-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fformat-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fformat-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderaiser","download_url":"https://codeload.github.com/coderaiser/format-io/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232193474,"owners_count":18486394,"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":["cloudcmd","format","javascript","nodejs","permissions","size"],"created_at":"2025-01-02T12:14:21.794Z","updated_at":"2025-01-02T12:14:22.274Z","avatar_url":"https://github.com/coderaiser.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Format [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\nFormat size, permissions, etc.\n\n# How to use?\n\nFormat could be used in browser or node.\n\n```js\nconst format = require('format-io');\n```\n\n# API\n\n## size\n\n```js\nconst size = 1024 * 1024 * 5;\nformat.size(size);\n// returns\n'5.00mb';\n```\n\n## permissions.symbolic\n\n```js\nconst perm = '00777';\nformat.permissions.symbolic(perm);\n// returns\n'rwx rwx rwx';\n```\n\n## permissions.numeric\n\n```js\nconst perm = 'rwx rwx rwx';\nformat.permissions.numeric(perm);\n// returns\n'00777';\n```\n\n# License\n\nMIT\n\n[NPMIMGURL]: https://img.shields.io/npm/v/format-io.svg?style=flat\n[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/format-io/master.svg?style=flat\n[DependencyStatusIMGURL]: https://img.shields.io/david/coderaiser/format-io.svg?style=flat\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPMURL]: https://npmjs.org/package/format-io \"npm\"\n[BuildStatusURL]: https://travis-ci.org/coderaiser/format-io \"Build Status\"\n[DependencyStatusURL]: https://david-dm.org/coderaiser/format-io \"Dependency Status\"\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n[CoverageURL]: https://coveralls.io/github/coderaiser/format-io?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/format-io/badge.svg?branch=master\u0026service=github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fformat-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderaiser%2Fformat-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fformat-io/lists"}