0.0.16 • Published 2 years ago

@suger-tdy/drivelist-osx v0.0.16

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

drivelist-osx

Get driver list in OSX.

Install

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

Usage

drivelist-osx

Programmatic API

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

const drivers = await list()

console.log(drivers)

// output:
// [
//   {
//     enumerator: 'DiskArbitration',
//     busType: 'Virtual Interface',
//     busVersion: null,
//     device: '/dev/disk5',
//     devicePath: 'IODeviceTree:/',
//     raw: '/dev/rdisk5',
//     description: 'Apple Disk Image Media',
//     partitionTableType: 'gpt',
//     error: null,
//     size: 89169920,
//     blockSize: 512,
//     logicalBlockSize: 512,
//     mountpoints: [
//       {
//         path: '/Volumes/qBittorrent 4.4.3.1',
//         label: 'qBittorrent 4.4.3.1',
//       },
//     ],
//     isReadOnly: true,
//     isSystem: false,
//     isVirtual: true,
//     isRemovable: true,
//     isCard: false,
//     isSCSI: false,
//     isUSB: false,
//     isUAS: null,
//   },
//   {
//     enumerator: 'DiskArbitration',
//     busType: 'Virtual Interface',
//     busVersion: null,
//     device: '/dev/disk6',
//     devicePath: 'IODeviceTree:/',
//     raw: '/dev/rdisk6',
//     description: 'Apple Disk Image Media',
//     partitionTableType: null,
//     error: null,
//     size: 311427072,
//     blockSize: 512,
//     logicalBlockSize: 512,
//     mountpoints: [
//       {
//         path: '/Volumes/TexturePacker',
//         label: 'TexturePacker',
//       },
//     ],
//     isReadOnly: true,
//     isSystem: false,
//     isVirtual: true,
//     isRemovable: true,
//     isCard: false,
//     isSCSI: false,
//     isUSB: false,
//     isUAS: null,
//   }
// ]
0.0.16

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago