
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A wrapper for VMWare CLI (vmrun) with Promises,
stdout/stderr output.vmrun(...) callnpm install --save vmrun
var VMRun = require('vmrun');
VMRun.setOptions({
hostType: 'ws' // Workstation
, guestUsername: 'user'
, guestPassword: '1234'
});
VMRun
.start('/home/user/vmware/machine/machine.vmx')
.then(function () {
return VMRun.poweroff('/home/user/vmware/otherMachine/otherMachine.vmx')
})
.catch(function (err) {
console.log(err);
})
Another way of setting options for controlling the vms, is using VMRun.withOptions(options) to get a new VMRun instance with the new options,
or using VMRun.withModifiedOptions(options) to get a new VMRun instance with the new options inheriting from the current options.
var VMRun = require('vmrun')
.setOptions({
hostType: 'ws'
});
VMRun
.withModifiedOptions({ guestUsername: 'user1', guestPassword: '123' })
.deleteFileInGuest('/home/user/vmware/machine/machine.vmx', 'C:\\Windows\\Temp\\temp.file')
.then(function (std) {
});
VMRun
.withModifiedOptions({ guestUsername: 'user2', guestPassword: '123' })
.deleteFileInGuest('/home/user/vmware/machine/machine.vmx', 'C:\\Windows\\Temp\\temp.file')
.then(function (std) {
});
Options for configuring VMRun are:
Host types are:
All options are in the JSDocs!
If you have anything to contribute, or functionality that you lack - you are more than welcome to participate in this! If anyone wishes to contribute unit tests - that also would be great :-)
If you want to buy me a beer, you are very welcome to
Thanks :-)
All the code here is under MIT license. Which means you could do virtually anything with the code. I will appreciate it very much if you keep an attribution where appropriate.
The MIT License (MIT)
Copyright (c) 2013 Daniel Cohen Gindi (danielgindi@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
FAQs
A wrapper for VMWare CLI with Promises
The npm package vmrun receives a total of 0 weekly downloads. As such, vmrun popularity was classified as not popular.
We found that vmrun demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.