@suger-tdy/drivelist-linux
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

drivelist-linux

Get driver list in linux

Install

npm install @suger-tdy/drivelist-linux -g

Usage

drivelist-linux

Programmatic API

import { list } from '@suger-tdy/drivelist-linux'

const drivers = await list()

console.log(drivers)

// output:
// [
//   {
//     "blockSize": 4096,
//     "busType": "SATA",
//     "busVersion": null,
//     "description": "ATA ST1000DM010-2EP1 (/, [SWAP], /boot/efi)",
//     "device": "/dev/sda",
//     "devicePath": null,
//     "enumerator": "lsblk:json",
//     "error": null,
//     "isCard": null,
//     "isReadOnly": false,
//     "isRemovable": false,
//     "isSCSI": true,
//     "isSystem": true,
//     "isUAS": null,
//     "isUSB": false,
//     "isVirtual": false,
//     "logicalBlockSize": 512,
//     "mountpoints": [
//       {
//         "label": null,
//         "path": "/",
//       },
//       {
//         "label": null,
//         "path": "[SWAP]",
//       },
//       {
//         "label": "EFI System Partition",
//         "path": "/boot/efi",
//       },
//     ],
//     "partitionTableType": null,
//     "raw": "/dev/sda",
//     "size": 1000204886016,
//   },
// ]

Readme

Keywords

Package Sidebar

Install

npm i @suger-tdy/drivelist-linux

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

25.4 kB

Total Files

15

Last publish

Collaborators

  • sugerroadsource