package
A simple wrapper for ImDisk to create (only VM) and delete virtual disks
npm install imdisk-wrapperGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
A simple wrapper for ImDisk to create (only VM) and delete virtual disks.
$ npm i -S imdisk-wrapperimDisk.create('Z', '32M').then((res) => {
console.log(res); // { label: 'Z', size: '32M' }
}).catch((err) => {
console.log(err);
});arguments:
label [string | default: random available letter] - Available drive letter is determined by windows-drive-letters.size [string | default: null] - The size of the disk in the format number[b, k, m, g, t, K, M, G, T].options:
imdiskPath [string | default: imdisk] - A path to ImDisk.fileSystem [string | default: ntfs] - Disk file system.command [string | default: null] - Custom command that replaces the command of creating disk in this module.imDisk.create('Z').then((res) => {
console.log(res); // { label: 'Z' }
}).catch((err) => {
console.log(err);
});arguments:
label [string | default: null] - The drive letter to remove.options:
imdiskPath [string | default: imdisk] - A path to ImDisk.force [boolean | default: false] - Use true to force removal even if the device is in use.command [string | default: null] - Custom command that replaces the command of removing disk in this module.See the Releases section of our GitHub project for changelogs for each release version.
This software is released under the terms of the MIT license.
Estimated unpacked size across 4 packages.
9.3 kB
Includes dependencies.