1.3.21 • Published 5 months ago

mountutils v1.3.21

Weekly downloads
1,954
License
Apache-2.0
Repository
github
Last release
5 months ago

mountutils

npm npm license npm downloads Travis CI status AppVeyor status

Cross platform mount related utilities

Installation

Install mountutils by running:

$ npm install --save mountutils

Debug mode

You can enable debug mode by setting the MOUNTUTILS_DEBUG environment variable.

Documentation

mountutils.unmountDisk(device, callback)

Kind: static method of mountutils
Summary: Unmount a whole disk
Access: public

ParamTypeDescription
deviceStringdevice
callbackfunctioncallback (error)

Example

// macOS
const drive = '/dev/disk2';

// GNU/Linux
const drive = '/dev/sdb';

// Windows
const drive = '\\\\.\\PHYSICALDRIVE2';

mountutils.unmountDisk(drive, (error) => {
  if (error) {
    throw error;
  }

  console.log('Done!');
});

Support

If you're having any problem, please raise an issue on GitHub and the Resin.io team will be happy to help.

Tests

Run the test suite by doing:

$ npm test

Troubleshooting

error C2373: '__pfnDliNotifyHook2': redefinition

This error indicates that the version of npm you're running is too old. Upgrade by running:

npm install -g npm@latest

See the following node-gyp issue for more details.

Contribute

Dependencies

Before submitting a PR, please make sure that you include tests, and that linters run without any warning:

$ npm run lint

License

The project is licensed under the Apache 2.0 license.

1.3.21

2 years ago

1.3.20

3 years ago

1.3.19

5 years ago

1.3.18

5 years ago

1.3.17

5 years ago

1.3.16

5 years ago

1.3.15

6 years ago

1.3.14

6 years ago

1.3.13

6 years ago

1.3.12

6 years ago

1.3.11

6 years ago

1.3.10

6 years ago

1.3.9

6 years ago

1.3.8

6 years ago

1.3.7

6 years ago

1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago