macmount

Mount an OS X disk to the default location

Usage no npm install needed!

<script type="module">
  import macmount from 'https://cdn.skypack.dev/macmount';
</script>

README

macmount

Mount an OS X disk to the default location.

npm version dependencies Build Status

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

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.