1.0.3 • Published 5 years ago

pendrive-list v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

List pendrives, use wmic, only windows.

Suported Plataforms

  • Windows

Instructions

const  list  =  require('pendrive-list');

// using sync function
console.log(await  list.ListPenDrive());

// or using promise
list.ListPenDrive().then(pendrives  => {
    console.log(pendrives);
}).catch(err  => {
    console.log(err);
});

Print:

[ { name: 'UBUNTU-SERV', path: 'E:' } ]