{"id":20163397,"url":"https://github.com/sjinks/node-statvfs","last_synced_at":"2025-04-10T00:36:50.767Z","repository":{"id":36972290,"uuid":"307448289","full_name":"sjinks/node-statvfs","owner":"sjinks","description":"Wrapper around uv_fs_statfs() function","archived":false,"fork":false,"pushed_at":"2025-03-03T06:31:58.000Z","size":698,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T05:02:22.345Z","etag":null,"topics":["node","node-native-addons","statfs","statvfs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@wwa/statvfs","language":"C++","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/sjinks.png","metadata":{"funding":{"custom":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"]},"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":"2020-10-26T17:13:34.000Z","updated_at":"2025-03-03T06:32:00.000Z","dependencies_parsed_at":"2023-12-04T06:23:35.484Z","dependency_job_id":"5d0b14d4-237a-466c-9b19-313b0bdf8881","html_url":"https://github.com/sjinks/node-statvfs","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fnode-statvfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fnode-statvfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fnode-statvfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Fnode-statvfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjinks","download_url":"https://codeload.github.com/sjinks/node-statvfs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248138002,"owners_count":21053774,"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":["node","node-native-addons","statfs","statvfs"],"created_at":"2024-11-14T00:29:28.992Z","updated_at":"2025-04-10T00:36:50.741Z","avatar_url":"https://github.com/sjinks.png","language":"C++","funding_links":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"],"categories":[],"sub_categories":[],"readme":"# node-statvfs\n\nThis module provides Node.js bindings for the [`uv_fs_statfs()`](http://docs.libuv.org/en/v1.x/fs.html#c.uv_fs_statfs) function.\n\n# Example\n\n```js\nconst { statvfs, statvfsSync } = require('@wwa/statvfs');\n\n// Asynchronous API, uses uv_fs_statfs()\nstatvfs('/').then((stat) =\u003e {\n    console.log('Total space:', stat.blocks * stat.bsize / 1073741824, 'GiB');\n    console.log('Free space:', stat.bfree * stat.bsize / 1073741824, 'GiB');\n    console.log('Available space:', stat.bavail * stat.bsize / 1073741824, 'GiB');\n\n    console.log('Total inodes:', stat.files);\n    console.log('Free inodes:', stat.ffree);\n});\n\n// Synchronous API (since 1.1.0), uses statvfs()\nconst stat = statvfsSync('/');\nconsole.log('Total space:', stat.blocks * stat.bsize / 1073741824, 'GiB');\nconsole.log('Free space:', stat.bfree * stat.bsize / 1073741824, 'GiB');\nconsole.log('Available space:', stat.bavail * stat.bsize / 1073741824, 'GiB');\n\nconsole.log('Total inodes:', stat.files);\nconsole.log('Free inodes:', stat.ffree);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Fnode-statvfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjinks%2Fnode-statvfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Fnode-statvfs/lists"}