Popularity
4.4
Growing
Activity
0.4
-
6
6
0
Programming language: Crystal
License: MIT License
Tags:
Misc
Latest version: v1.1.0
pinger alternatives and similar shards
Based on the "Misc" category.
Alternatively, view pinger alternatives based on common mentions on social networks and blogs.
-
burocracia.cr
burocracia.cr the dependecyless shard to validate, generate and format Brazilian burocracias such as CPF, CNPJ and CEP -
anyolite
Full mruby interpreter with simple bindings, allowing for easy scripting support in projects -
crystal-web-framework-stars
Web frameworks for Crystal, most starred on Github
Get performance insights in less than 4 minutes
Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
Sponsored
scoutapm.com
Do you think we are missing an alternative of pinger or a related project?
README
pinger
Microlib to generate ICMP ping requests.
Avoids sudo requirement of using raw sockets by shelling out to ping
and thus pinger has an implicit dependency of ping
.
Installation
- Add the dependency to your
shard.yml
:
dependencies:
pinger:
github: spider-gazelle/pinger
- Run
shards install
Usage
require "pinger"
hostname = "www.duckduckgo.com"
pinger = Pinger.new(hostname, count: 3)
pinger.ping # => true / false
puts {
host: pinger.ip,
pingable: pinger.pingable,
warning: pinger.warning,
exception: pinger.exception
}
Or if you would like an error raised
require "pinger"
hostname = "www.doesnotexist.com"
pinger = Pinger.new(hostname, count: 3)
pinger.ping! # => self / raise pinger.exception
Todo
- [ ] utilise
Crystal::Config.default_target
rather than shelling out to uname
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request