Skip to content

medicomdev/cd-usb-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors