UNPKG
jsdx-disk
Version:
latest (0.2.1)
0.2.1
0.2.0
0.0.4
0.0.2
0.0.1
Disk API on JSDX framework
github.com/cfsghost/jsdx-disk
jsdx-disk
/
tests
/
mount.js
17 lines
(11 loc)
•
252 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"use strict"
;
var
Disk
=
require
(
'../'
);
var
disk =
new
Disk
(); disk.
init
(
function
(
) { disk.
getBlockDevice
(
'sdb1'
,
function
(
err, device
) { device.
mount
({},
function
(
err, mountPath
) {
console
.
log
(mountPath); process.
exit
(); }); }); });