# udping

> A simple Ping app. with UDP socket.

Latest version **0.5.0** (published 2016-12-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install udping
pnpm add udping
yarn add udping
bun add udping
```

Provides the commands `udping`, `udping-web`.

## 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.5.0 |
| Published | 2016-12-11 |
| First published | 2016-07-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.4.7 |
| Dependencies | 9 |
| Known vulnerabilities | 0 (+4 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | yasnyan |
| Maintainers | yas-nyan |

## Links

- npm: https://www.npmjs.com/package/udping
- Repository: https://github.com/yas-nyan/udping
- Homepage: https://github.com/yas-nyan/udping#readme
- Issues: http://github.com/yas-nyan/udping/issues
- npm.io page: https://npm.io/package/udping

## Dependencies (9)

- [ip](https://npm.io/package/ip.md) ^1.1.3
- [vue](https://npm.io/package/vue.md) ^2.1.4
- [gulp](https://npm.io/package/gulp.md) ^3.9.1
- [opts](https://npm.io/package/opts.md) ^1.2.2
- [express](https://npm.io/package/express.md) ^4.14.0
- [socket.io](https://npm.io/package/socket.io.md) ^1.7.2
- [browserify](https://npm.io/package/browserify.md) ^13.1.1
- [socket.io-client](https://npm.io/package/socket.io-client.md) ^1.7.2
- [vinyl-source-stream](https://npm.io/package/vinyl-source-stream.md) ^1.1.0

## Recent versions

- 0.5.0 (latest) — 2016-12-11
- 0.4.0 — 2016-12-11
- 0.3.2 — 2016-12-04
- 0.3.1 — 2016-12-04
- 0.3.0 — 2016-12-01
- 0.2.1 — 2016-11-30
- 0.2.0 — 2016-11-20
- 0.1.3 — 2016-08-01
- 0.1.2 — 2016-07-31
- 0.1.1 — 2016-07-31
- 0.1.0 — 2016-07-31

## README

# UDPING

## instalation
* CLI tool

```shell:~/
npm install udping --global
```
* npm module

```shell:~/yourNodeAppDir/
npm install udping --save
```


* WEB Console

```shell:~/
npm install udping --global

udping-web
```



## EXAMPLE

```shell:~/udping/
udping
```

### options

Show this help message
    --help
Wait wait seconds between sending each packet.
    -t, --time <value>
Wait wait seconds between sending each packet.
    -i, --wait <value>
output text file path
    -f, --file <value>
server host name
    -h, --host <value> 
server port number
    -p, --port <value>
use server mode
    -s, --server
use client mode
    -c, --client

## module

```node:yourscript.js
const Udping =require("udping");
cosnt Server = new Udping(env).server;


/*

env = {
    //server or client  default:client
    mode:  mode || "client",
    //server host name default:ip.address();
    host: opts.get("host") || opts.args()[0] || ip.address(),
    // server port default:55555
    port: opts.get("port") || 55555,
    execTIme: new Date().getTime(),
    // output path default:"./udping_result.txt"
    savepath: opts.get("file") || "./udping_result.txt",
    //wait time default 1000
    wait: parseInt(opts.get("wait") * 1000) || 1000,
    //try time default:0(infinity)
    time: opts.get("time") || 0
    //callback function that is called when timeout or error occures.default is false(primitive).
    errCallback : yourCallbackFunction || false
}
*/
```

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