Skip to content

Commit

Permalink
feat: add tcping
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jun 3, 2022
1 parent 888b844 commit 197cf54
Show file tree
Hide file tree
Showing 6 changed files with 798 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ import {semver} from 'zx-extra'
semver.gte('1.0.1', '1.0.0')
```

### tcping
Checks the network availability of the specified gateway via [is-reachable](https://github.com/sindresorhus/is-reachable#readme).
```js
import {tcping} from 'zx-extra'

await tcping('example.com:443') // true
await tcping('unknown:1234') // false
```

### `tempy`
Creates [temp dirs and files](https://github.com/sindresorhus/tempy).
```js
Expand Down
Loading

0 comments on commit 197cf54

Please sign in to comment.