1.0.11 • Published 6 years ago
isvirtual v1.0.11
What is isVirtual?
isVirtual is a tiny utility to quickly determine if a Windows system has virtualization enabled. Virtualization is needed when using Docker for Windows
This repo can also be useful as a starter boilerplate for npm libraries
How to use
$ npm install -g isvirtual # note all lowercase
$ isVirtual # Will indicate if virtualization is enabled and steps to remedy if not
Usage from a script:
$ npm install --save isvirtual
const { isVirtual } = require('isVirtual');
console.log(isVirtual()); #The tool will return 1 if virtualization is enabled and 0 if not
Rebuild/recompile
$ node-gyp configure build
If node-gyp is unavailable, install node-gyp and add dependencies
Run Tests
$ npm test