https://github.com/skyksandr/usb-mount-notifier
simple command line app that print to stdout when usb drive mounted and unmounted with mount point
https://github.com/skyksandr/usb-mount-notifier
Last synced: over 1 year ago
JSON representation
simple command line app that print to stdout when usb drive mounted and unmounted with mount point
- Host: GitHub
- URL: https://github.com/skyksandr/usb-mount-notifier
- Owner: skyksandr
- License: mit
- Created: 2015-11-11T21:46:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-10T08:35:12.000Z (over 10 years ago)
- Last Synced: 2025-03-24T02:36:43.033Z (over 1 year ago)
- Language: Objective-C
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# usb-mount-notifier
Simple command line app that print to stdout when usb drive mounted and unmounted with mount point
You can find executable in build directory.
Use with node.js:
```
var spawn = require('child_process').spawn,
usb_notifier = spawn('usb-mount-notifier');
usb_notifier.stdout.on('data', function (data) {
console.log('stdout: ' + data);
});
```
example of output:
```
unmounted: /Volumes/Transcend
mounted: /Volumes/Transcend
unmounted: /Volumes/Transcend
```
Works with OS X.
# License
usb-mount-notifier is released under the [MIT License](http://opensource.org/licenses/MIT)