1.0.0 • Published 9 years ago
iis-reset v1.0.0
iis-reset
Node.js wrapper for Windows iisreset command
Note: Because this is IIS, you need to execute it using "Run As Administrator".
Installation
npm install iis-reset --save
Usage
var iisreset = require('iis-reset');
var opts = {server : "myserver", action: "start"}; // actions : start, stop & restart
iisreset(opts).then(function(output){
console.log("Server started successfully!",output);
}).catch(function(err){
console.log(err);
});
or
iisreset(opts, function(err, output){
if(err) {
console.log(err);
} else {
console.log("Server started successfully!",output);
}
});
Tests
npm test
Release History
- 1.0.0 Initial release
1.0.0
9 years ago