diff --git a/README.md b/README.md index 53fe9c1..c65151d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # systeminformation +![micro-monitor](https://www.plus-innovations.com/images/system-information-100.png) + Simple system and OS information library for [node.js][nodejs-url] [![NPM Version][npm-image]][npm-url] diff --git a/lib/util.js b/lib/util.js index 7d548a2..f037aa3 100644 --- a/lib/util.js +++ b/lib/util.js @@ -156,9 +156,11 @@ function powerShell(cmd) { result = result + data.toString('utf8'); }); child.stderr.on('data', function (data) { + child.kill(); reject(data); }); child.on('close', function () { + child.kill(); resolve(result); }); @@ -168,7 +170,6 @@ function powerShell(cmd) { }); } - function noop() { } exports.isFunction = isFunction;