npm.io
0.0.2 • Published 9 years ago

nmount

Licence
Version
0.0.2
Deps
0
Vulns
0
Weekly
0
Stars
1
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

node-mount

Mount/unmount devices from node.js

Really works on linux, may work on OS X, and will never work on windows.

Installation

npm install mnt

Usage

var mount = require('mount');
mount.mount('tmpfs', 'tmpDir', 'tmpfs', function(success) {
	// Do hard job.
	mount.unmount('tmpDir', function(success) {
		// Finish hard job! YAY.
	});
});

This module is forked from Maciej Małecki`s repository, but completely rewritten.

Keywords