{"id":18483264,"url":"https://github.com/cloudcmd/formatify","last_synced_at":"2025-04-08T18:32:33.184Z","repository":{"id":57102596,"uuid":"119686792","full_name":"cloudcmd/formatify","owner":"cloudcmd","description":"format directory content","archived":false,"fork":false,"pushed_at":"2024-08-24T15:24:49.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T17:12:19.257Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/cloudcmd.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"coderaiser","patreon":"coderaiser","open_collective":"cloudcmd","ko_fi":"coderaiser"}},"created_at":"2018-01-31T12:52:48.000Z","updated_at":"2024-08-24T15:24:52.000Z","dependencies_parsed_at":"2024-08-24T16:41:19.657Z","dependency_job_id":null,"html_url":"https://github.com/cloudcmd/formatify","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/cloudcmd%2Fformatify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fformatify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fformatify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudcmd%2Fformatify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudcmd","download_url":"https://codeload.github.com/cloudcmd/formatify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247902501,"owners_count":21015458,"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-11-06T12:35:01.996Z","updated_at":"2025-04-08T18:32:28.167Z","avatar_url":"https://github.com/cloudcmd.png","language":"JavaScript","funding_links":["https://github.com/sponsors/coderaiser","https://patreon.com/coderaiser","https://opencollective.com/cloudcmd","https://ko-fi.com/coderaiser"],"categories":[],"sub_categories":[],"readme":"# Formatify [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@cloudcmd/formatify.svg?style=flat\n[BuildStatusIMGURL]: https://github.com/cloudcmd/formatify/actions/workflows/nodejs.yml/badge.svg\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPMURL]: https://npmjs.org/package/@cloudcmd/formatify \"npm\"\n[BuildStatusURL]: https://github.com/cloudcmd/formatify/actions/workflows/nodejs.yml\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n\nFormat directory content received by [readify](https://github.com/coderaiser/readify).\n\n## Install\n\n```\nnpm i @cloudcmd/formatify --save\n```\n\n## API\n\n### formatify(files)\n\n- **files** - `files list`\n\n## Examples\n\n```js\nconst files = [{\n    name: 'sortify.js',\n    size: 3538,\n    date,\n    owner: 0,\n    mode: 33_204,\n}, {\n    name: 'readify.js',\n    size: 1629,\n    date: '2016-11-21T13:37:55.275Z',\n    owner: 0,\n    mode: 33_204,\n}];\n\nformatify(files);\n// returns\n[{\n    name: 'formatify.js',\n    size: '3.46kb',\n    date: '12.01.2017',\n    owner: 0,\n    mode: 'rw- rw- r--',\n}, {\n    name: 'readify.js',\n    size: '1.59kb',\n    date: '12.01.2017',\n    owner: 0,\n    mode: 'rw- rw- r--',\n}];\n```\n\n## Related\n\n- [Sortify](https://github.com/cloudcmd/sortify \"Sortify\") - sort directory content by name, size, date\n- [Readify](https://github.com/coderaiser/readify \"Readify\") - read directory content with file attributes: size, date, owner, mode\n\n## License\n\nMIT\n\n[CoverageURL]: https://coveralls.io/github/cloudcmd/formatify?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/cloudcmd/formatify/badge.svg?branch=master\u0026service=github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudcmd%2Fformatify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudcmd%2Fformatify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudcmd%2Fformatify/lists"}