Socket
Book a DemoInstallSign in
Socket

imdisk-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imdisk-wrapper

A simple wrapper for ImDisk to create (only VM) and delete virtual disks

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
3
-62.5%
Maintainers
1
Weekly downloads
 
Created
Source

imdisk-wrapper

A simple wrapper for ImDisk to create (only VM) and delete virtual disks.

AppVeyor NPM version devDependency Status devDependency Status

Install

$ npm i -S imdisk-wrapper

Usage

create(label, size, [options])

imDisk.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.

remove(label, [options])

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.

Changelog

See the Releases section of our GitHub project for changelogs for each release version.

License

This software is released under the terms of the MIT license.

Keywords

windows

FAQs

Package last updated on 10 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts