eject-media

0.0.3 • Public • Published

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!';)

});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    12
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    12
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i eject-media

Weekly Downloads

12

Version

0.0.3

License

MIT

Last publish

Collaborators

  • jayalfredprufrock