# is-tcp-on

> check whether a tcp server could be connected

Latest version **0.1.2** (published 2015-01-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-tcp-on
pnpm add is-tcp-on
yarn add is-tcp-on
bun add is-tcp-on
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2015-01-20 |
| First published | 2015-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | undoZen |
| Maintainers | undozen |
| Keywords | tcp, connection |

## Links

- npm: https://www.npmjs.com/package/is-tcp-on
- Repository: https://github.com/undoZen/is-tcp-on
- Issues: https://github.com/undoZen/is-tcp-on/issues
- npm.io page: https://npm.io/package/is-tcp-on

## Dependencies (2)

- [destroy](https://npm.io/package/destroy.md) ^1.0.3
- [es6-promise](https://npm.io/package/es6-promise.md) ^2.0.1

## Recent versions

- 0.1.2 (latest) — 2015-01-20
- 0.1.1 — 2015-01-20
- 0.1.0 — 2015-01-20

## README

# is-tcp-on
check whether a tcp server could be connected

## installation

```bash
npm i is-tcp-on
```

## usage

```javascript
var isTcpOn = require('is-tcp-on');
isTcpOn({
    port: 80,
    host: '127.0.0.1',
    timeout: 1000 // optional, default is 1000ms
})
.then(function () {
    // tcp server exists
}, function () {
    // can not connect to this tcp server
});
```

---
_Source: https://npm.io/package/is-tcp-on · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
