Skip to content

About

Get info about active CDs, USBs for Mac and Windows

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

getUSBStorageDevices This function will throw an error on failures / timeout

returns [{
    freeInBytes,
    totalInBytes,
    mountpoint,
}]

getDiscDrives This function will throw an error on failures / timeout

returns [{
    isMediaInDrive,
    isWritable,
    isLiveFileSystem,
    freeInBytes, /*Does not return on windows for an unburned CD/DVD (not live file system)*/
    totalInBytes, /*Does not return on windows for an unburned CD/DVD (not live file system)*/
    mountpoint, /*only returns on windows*/
    drivename, /*only returns on mac*/
    isMediaInDriveError /*Returns on windows if MediaInDrive was unable to be detected (isMediaInDrive returns false in this case)*/
}]

Try it out Run "node runFunctions" to see the results of the above functions

About

Get info about active CDs, USBs for Mac and Windows

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages