0.0.3 • Published 7 years ago

eject-media v0.0.3

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

node-eject-media

Safely eject media on Windows, OSX, and Linux

Runs one of the following in a child_process:

  • diskutil eject /drive (OSX)
  • eject -f /drive (Linux)
  • EjectMedia Windows)

#Usage

var ejectMedia = require('eject-media');
ejectMedia.eject('/Volumes/Drive', function(error, stdin, stdout) {
	
	if (!error) console.log('ejected!';)

});