{"id":15717940,"url":"https://github.com/knutkirkhorn/system-disk","last_synced_at":"2026-05-07T03:30:58.783Z","repository":{"id":65407663,"uuid":"119213314","full_name":"knutkirkhorn/system-disk","owner":"knutkirkhorn","description":"💽 Get the system disk of the computer (e.g. `C:` or `/dev/sda`)","archived":false,"fork":false,"pushed_at":"2023-03-02T18:41:07.000Z","size":21,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T05:37:55.784Z","etag":null,"topics":["disk","drive","linx","macos","macosx","nodejs","system","system-disk","unix","windows"],"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/knutkirkhorn.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-01-28T00:03:54.000Z","updated_at":"2021-11-09T19:47:53.000Z","dependencies_parsed_at":"2024-10-24T14:31:26.671Z","dependency_job_id":"2061212c-f9b7-4f8d-a8f7-817eecbfe92b","html_url":"https://github.com/knutkirkhorn/system-disk","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"2d7d1624c002522c96bd8e220a66dcf0cc3eb992"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutkirkhorn%2Fsystem-disk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutkirkhorn%2Fsystem-disk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutkirkhorn%2Fsystem-disk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutkirkhorn%2Fsystem-disk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knutkirkhorn","download_url":"https://codeload.github.com/knutkirkhorn/system-disk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246385414,"owners_count":20768672,"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":["disk","drive","linx","macos","macosx","nodejs","system","system-disk","unix","windows"],"created_at":"2024-10-03T21:51:42.898Z","updated_at":"2025-10-28T10:38:26.434Z","avatar_url":"https://github.com/knutkirkhorn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# system-disk\n\n\u003e Get the system disk of the computer (e.g. `C:` or `/dev/sda`)\n\nFor Windows this module uses the [`%SystemDrive%`](http://environmentvariables.org/SystemDrive) environment variable and the [`mount`](https://en.wikipedia.org/wiki/Mount_(Unix)) command for macOS and Linux.\n\n## Installation\n\n```\nnpm install system-disk\n```\n\n## Usage\n\n```js\nimport systemDisk from 'system-disk';\n\nconst disk = await systemDisk();\nconsole.log(disk);\n// =\u003e C:\n```\n\n## API\n\n### systemDisk()\n\nReturns the disk on the computer where the operating system is stored (the boot disk).\n\n## Related\n\n- [@knutkirkhorn/free-space](https://github.com/knutkirkhorn/free-space) - Get the amount of free space for a drive\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknutkirkhorn%2Fsystem-disk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknutkirkhorn%2Fsystem-disk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknutkirkhorn%2Fsystem-disk/lists"}