Skip to content

dbackowski/PingOutput

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PingOutput

Realtime ping output for node, inherits from EventEmitter.

Usage

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.

About

Realtime ping output for node, inherits from EventEmitter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published