Skip to content

Commit

Permalink
Merge pull request #19 from dopecodez/master
Browse files Browse the repository at this point in the history
Merging develop and master
  • Loading branch information
dopecodez committed Oct 14, 2020
2 parents eb04af3 + d94c2d4 commit 5baf6df
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 12 deletions.
22 changes: 22 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: "2"
checks:
argument-count:
enabled: false
complex-logic:
enabled: false
file-lines:
enabled: false
method-complexity:
enabled: false
method-count:
enabled: false
method-lines:
enabled: false
nested-control-flow:
enabled: false
return-statements:
enabled: false
similar-code:
enabled: false
identical-code:
enabled: false
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ const ping = require('pingman');
try {
const response = await ping('127.0.0.1');
console.log(response);
if(response.alive){
//=>if pinged ip is available and responds
}
//=> '<!doctype html> ...'
if(response.alive){
//=>if pinged ip is available and responds
}
} catch (error) {
console.log(error);
//=> 'Internal server error ...'
Expand All @@ -51,10 +50,9 @@ import ping, {pingResponse, pingOptions} from 'pingman'
const options: pingOptions = {logToFile:true, numberOfEchos: 6, timeout: 2, IPV4: true};
const response: pingResponse = await ping('github.com', {logToFile:true, numberOfEchos: 6, timeout: 2, IPV4: true});
console.log(response);
if(response.alive){
//=>if pinged ip is available and responds
}
//=> '<!doctype html> ...'
if(response.alive){
//=>if pinged ip is available and responds
}
} catch (error) {
console.log(error);
//=> 'Internal server error ...'
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pingman",
"version": "1.0.7",
"version": "1.0.9",
"description": "A ping wrapper for node with TypeScript",
"main": "dist/src",
"engines": {
Expand Down Expand Up @@ -30,8 +30,7 @@
"np": "^6.2.3"
},
"files": [
"dist/src",
"dist/test"
"dist/src"
],
"types": "dist/src/",
"ava": {
Expand Down

0 comments on commit 5baf6df

Please sign in to comment.