{"id":17929394,"url":"https://github.com/iximiuz/node-diskusage-ng","last_synced_at":"2025-03-24T04:31:01.414Z","repository":{"id":54799333,"uuid":"100865739","full_name":"iximiuz/node-diskusage-ng","owner":"iximiuz","description":"Get disk usage info in pure JS via OS built-in tools","archived":false,"fork":false,"pushed_at":"2023-01-15T20:40:14.000Z","size":38,"stargazers_count":18,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T21:46:38.074Z","etag":null,"topics":["diskusage","linux","macos","nodejs","windows"],"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/iximiuz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-20T14:08:46.000Z","updated_at":"2025-02-26T02:17:52.000Z","dependencies_parsed_at":"2023-02-09T23:46:01.753Z","dependency_job_id":null,"html_url":"https://github.com/iximiuz/node-diskusage-ng","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iximiuz%2Fnode-diskusage-ng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iximiuz%2Fnode-diskusage-ng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iximiuz%2Fnode-diskusage-ng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iximiuz%2Fnode-diskusage-ng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iximiuz","download_url":"https://codeload.github.com/iximiuz/node-diskusage-ng/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245210911,"owners_count":20578315,"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":["diskusage","linux","macos","nodejs","windows"],"created_at":"2024-10-28T21:09:03.549Z","updated_at":"2025-03-24T04:31:01.021Z","avatar_url":"https://github.com/iximiuz.png","language":"JavaScript","readme":"# diskusage-ng - get disk usage info in pure JavaScript and without any dependencies\n\n[![Build Status](https://travis-ci.org/iximiuz/node-diskusage-ng.svg?branch=master)](https://travis-ci.org/iximiuz/node-diskusage-ng)\n\nSupported operating systems:\n - Windows (via WMIC)\n - OSX/Linux/Posix (via df)\n\n## Usage\n```\nvar diskusage = require('diskusage-ng');\n\ndiskusage('/home/me', function(err, usage) {\n\tif (err) return console.log(err);\n\n\tconsole.log(usage.total);\n\tconsole.log(usage.used);\n\tconsole.log(usage.available);\n});\n\n```\n\n## Commands\n```\nnpm run test\n```\n\n## Credits\n\n- Thanks to @xiaoxiangmoe for providing TypeScript type definitions.\n\n- Thanks to @Congelli501 for replacing `child_process.exec` with `child_process.execFile`\n  on POSIX systems making the code much more secure.\n\n- Thanks to @mintaka-orionis for fixing long paths issue on POSIX systems.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiximiuz%2Fnode-diskusage-ng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiximiuz%2Fnode-diskusage-ng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiximiuz%2Fnode-diskusage-ng/lists"}