macmount
v1.0.0
Published
Mount an OS X disk to the default location
Downloads
255
Readme
macmount
Mount an OS X disk to the default location.
Installation
Install macmount
by running:
$ npm install --save macmount
You can also install a macmount
CLI tool with:
$ npm install --global macmount
Documentation
macmount.mount(disk, callback)
This function handles raw disk (in the form of /dev/rdiskN
) automatically.
Kind: static method of macmount
Summary: Mount an OS X disk to the default location
Access: public
| Param | Type | Description | | --- | --- | --- | | disk | String | disk | | callback | function | callback (error) |
Example
var macmount = require('macmount');
macmount.mount('/dev/disk2', function(error) {
if (error) {
throw error;
}
});
Tests
Run the test suite by doing:
$ npm test
Development
macmount
wraps a native command line utility that must be built with Xcode.
If you make edits to the executable source make sure to build it afterwards with:
$ npm run build
The command line utility can be used directly as follows:
$ ./bin/macmount disk
Contribute
- Issue Tracker: github.com/resin-io-modules/macmount/issues
- Source Code: github.com/resin-io-modules/macmount
Support
If you're having any problem, please raise an issue on GitHub and the Resin.io team will be happy to help.
License
macmount is free software, and may be redistributed under the terms specified in the license.