https://github.com/dbackowski/pingoutput
Realtime ping output for node, inherits from EventEmitter.
https://github.com/dbackowski/pingoutput
coffeescript eventemitter javascript nodejs realtime-ping
Last synced: 11 months ago
JSON representation
Realtime ping output for node, inherits from EventEmitter.
- Host: GitHub
- URL: https://github.com/dbackowski/pingoutput
- Owner: dbackowski
- Created: 2014-09-29T13:00:20.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-30T15:23:08.000Z (over 11 years ago)
- Last Synced: 2024-04-20T13:35:29.331Z (about 2 years ago)
- Topics: coffeescript, eventemitter, javascript, nodejs, realtime-ping
- Language: JavaScript
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PingOutput
Realtime ping output for node, inherits from EventEmitter.
## Usage
```coffee
p = require('ping-output')
ping = new p.PingOutput()
ping.on 'ping:output', (data) ->
process.stdout.write data.toString()
ping.start('127.0.0.1')
setTimeout (->
ping.stop()
), 5000
```
This will ping localhost, send output to stdout and stop after 5 seconds.