{"id":26258184,"url":"https://github.com/yiliansource/prsize","last_synced_at":"2025-04-28T19:18:21.563Z","repository":{"id":65476853,"uuid":"351011877","full_name":"yiliansource/prsize","owner":"yiliansource","description":"A CLI tool to measure JS/TS project sizes.","archived":false,"fork":false,"pushed_at":"2024-02-10T14:27:29.000Z","size":119,"stargazers_count":7,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-28T19:18:16.019Z","etag":null,"topics":["comments","projects","size"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/prsize","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/yiliansource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-03-24T09:01:43.000Z","updated_at":"2024-02-10T14:27:32.000Z","dependencies_parsed_at":"2025-03-13T21:44:50.195Z","dependency_job_id":null,"html_url":"https://github.com/yiliansource/prsize","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiliansource%2Fprsize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiliansource%2Fprsize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiliansource%2Fprsize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiliansource%2Fprsize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiliansource","download_url":"https://codeload.github.com/yiliansource/prsize/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251372537,"owners_count":21578967,"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":["comments","projects","size"],"created_at":"2025-03-13T21:34:37.706Z","updated_at":"2025-04-28T19:18:21.523Z","avatar_url":"https://github.com/yiliansource.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prsize\n\n![npm](https://img.shields.io/npm/v/prsize)\n![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/yiliansource/prsize/tests/main)\n![npm bundle size](https://img.shields.io/bundlephobia/min/prsize)\n![npm](https://img.shields.io/npm/dt/prsize)\n![supports](https://img.shields.io/badge/supports-.js%2C%20.ts-green)\n\n---\n\nThis is a tool to quickly measure the size of your coding project, in terms of executable code, code-to-comment proportions and file size. Nothing that actually aids in development - just fun metrics here!\n\nThe tool currently supports `.js` and `.ts` files. More to come?\n\nYou can easily run the tool via `npx` (bundled with `npm` since 5.2):\n\n```sh\nnpx prsize\n```\n\nAlternatively, you can globally install the tool into your commandline:\n\n```sh\nnpm i -g prsize\nprsize\n```\n\nThe output will look something like this:\n\n```\nHierarchy              Size (in bytes)      Executable lines       Comment lines        Total lines\n----------------------------------------------------------------------------------------------------------------------\n\u003cpath to the item\u003e     \u003cfilesize\u003e [\u003c%\u003e]    \u003clinecount\u003e [\u003c%\u003e]      \u003clinecount\u003e [\u003c%\u003e]    \u003clinecount\u003e [\u003c%\u003e]\n...                    ...                 ...                    ...                  ...\n```\n\n## Usage\n\nThe default usage is to call the tool the following way:\n\n```sh\nnpx prsize [path] [options]\n```\n\n`path` defaults to the current working directory (`.`), and you can use the [options](#options) below to customize the output.\n\n## Options\n\n| Name       | Default Value | Description                                                                                                                |\n| :--------- | :------------ | :------------------------------------------------------------------------------------------------------------------------- |\n| `--depth`  | `-1`          | How deep to show the tree. Note that regardless of this, the entire project will be scanned. `-1` to show the entire tree. |\n| `--nodirs` | `false`       | Whether to hide directory statistics. Note that the directories themselves will be shown regardless.                       |\n\n## License\n\nThe project is licensed under a [MIT license](./license.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiliansource%2Fprsize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiliansource%2Fprsize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiliansource%2Fprsize/lists"}