{"id":22107492,"url":"https://github.com/nextyfine-dev/detect-drives","last_synced_at":"2026-01-12T09:41:43.555Z","repository":{"id":233254027,"uuid":"786363132","full_name":"nextyfine-dev/detect-drives","owner":"nextyfine-dev","description":"Detect Drives: A Node.js package for effortlessly identifying and gathering information about drives across Windows, macOS, and Linux systems. Simple, cross-platform drive detection and retrieval for your applications.","archived":false,"fork":false,"pushed_at":"2024-09-23T16:43:47.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-28T08:10:39.957Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/nextyfine-dev.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,"zenodo":null}},"created_at":"2024-04-14T08:16:13.000Z","updated_at":"2024-09-23T16:43:51.000Z","dependencies_parsed_at":"2024-04-15T07:37:56.151Z","dependency_job_id":"5918c9cf-5374-413a-a31b-8bb54105e118","html_url":"https://github.com/nextyfine-dev/detect-drives","commit_stats":null,"previous_names":["nextyfine-dev/detect-drives"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nextyfine-dev/detect-drives","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextyfine-dev%2Fdetect-drives","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextyfine-dev%2Fdetect-drives/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextyfine-dev%2Fdetect-drives/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextyfine-dev%2Fdetect-drives/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextyfine-dev","download_url":"https://codeload.github.com/nextyfine-dev/detect-drives/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextyfine-dev%2Fdetect-drives/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-12-01T08:17:50.702Z","updated_at":"2026-01-12T09:41:43.541Z","avatar_url":"https://github.com/nextyfine-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔍 detect-drives\n\ndetect-drives: Cross-platform Node.js library for detecting drives and retrieving disk information\n\n🚀 A versatile Node.js library for effortless drive detection and detailed disk information retrieval. Seamlessly discover drives on Windows, macOS, and Linux systems, empowering your applications with comprehensive storage insights.\n\n## Table of Contents\n\n- [🔍 detect-drives](#detect-drives)\n  - [Table of Contents](#table-of-contents)\n  - [Features](#features)\n  - [Installation](#installation)\n  - [Usage](#usage)\n    - [Initialization](#initialization)\n    - [Detecting Drives](#detecting-drives)\n    - [Detecting USB Drives](#detecting-usb-drives)\n    - [Functions](#functions)\n  - [License](#license)\n\n## Features\n\n- 🖥️ Detect drives on Windows, macOS, and Linux systems effortlessly.\n- 📄 Retrieve detailed disk information including file system, size, usage, and more.\n- 🔌 Detect USB drives with ease.\n- 🌐 Cross-platform compatibility ensures seamless integration across diverse environments.\n- 🛠️ Versatile API for flexible usage in various Node.js applications.\n- 💻 Lightweight and dependency-free, keeping your projects efficient and agile.\n- 🔄 Asynchronous and synchronous programming paradigms supported for enhanced flexibility.\n- 📦 Easy installation via npm or yarn for quick setup.\n\ndetect-drives provides a comprehensive solution for drive detection and disk information retrieval, ensuring smooth operation and deep insights into storage systems.\n\n## Installation\n\nInstall the package using npm:\n\n```bash\nnpm install detect-drives\n```\n\nInstall the package using yarn:\n\n```bash\nyarn add detect-drives\n```\n\n## Usage\n\n### Initialization\n\n```javascript\n// CommonJS\nconst { detectDrives, detectUsbDrives } = require(\"detect-drives\");\n\n// ESM\nimport { detectDrives, detectUsbDrives } from \"detect-drives\";\n```\n\n### Detecting Drives\n\n```javascript\nconst drives = await detectDrives();\nconsole.log(\"Detected Drives:\", drives);\n```\n\n### Detecting USB Drives\n\n```javascript\nconst usbDrives = await detectUsbDrives();\nconsole.log(\"Detected USB Drives:\", usbDrives);\n```\n\n### Functions\n\n- `detectDrives()`\n- `detectUsbDrives()`\n- `detectAllLinuxDrives()`\n- `detectDrivesOnWindows()`\n- `detectDrivesOnUnix()`\n\n## License\nThis package is licensed under the [MIT License](https://github.com/nextyfine-dev/detect-drives/blob/master/LICENSE). See the [LICENSE](./LICENSE) file for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextyfine-dev%2Fdetect-drives","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextyfine-dev%2Fdetect-drives","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextyfine-dev%2Fdetect-drives/lists"}