List all connected drives in your computer, in all major operating systems.
Notice that this module does not require admin privileges to get the drives in any supported operating system.
When the user executes
drivelist.list(), the module checks the operating
system of the client and executes the corresponding drive scanning script.
Examples (the output will vary depending on your machine):
const drivelist = ;const drives = await drivelist;console;
Mac OS X:
drivelist by running:
$ npm install --save drivelist
Kind: inner method of
Summary: List available drives
Promise - 
const drivelist = ;const drives = await drivelist;drives;
Run the test suite by doing:
$ npm test
We're looking forward to support more operating systems. Please raise an issue or even better, send a PR to increase support!
- Issue Tracker: github.com/balena-io-modules/drivelist/issues
- Source Code: github.com/balena-io-modules/drivelist
Before submitting a PR, please make sure that you include tests, and that the linter runs without any warning:
$ npm run lint
If you're having any problem, please raise an issue on GitHub.
The project is licensed under the Apache 2.0 license.