node-tool-utils
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -0,1 +1,10 @@ | ||
## [1.2.3](https://github.com/hubcarl/node-tool-utils/compare/1.2.2...1.2.3) (2019-08-01) | ||
### Bug Fixes | ||
* netstat replace to lsof -i for check port used ([3bf06c3](https://github.com/hubcarl/node-tool-utils/commit/3bf06c3)) | ||
## [1.2.2](https://github.com/hubcarl/node-tool-utils/compare/1.2.1...1.2.2) (2019-07-05) | ||
@@ -2,0 +11,0 @@ |
@@ -157,9 +157,9 @@ 'use strict'; | ||
case 'darwin': | ||
cmd = `netstat -anp tcp | grep ${port}`; | ||
cmd = `lsof -i:${port}`; | ||
break; | ||
case 'linux': | ||
cmd = `netstat -apn | grep ${port}`; | ||
cmd = `lsof -i:${port}`; | ||
break; | ||
default: | ||
cmd = `netstat -apn | grep ${port}`; | ||
cmd = `lsof -i:${port}`; | ||
break; | ||
@@ -166,0 +166,0 @@ } |
{ | ||
"name": "node-tool-utils", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "node cross-platform tool library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
12922