netTest

Connection Test for Nim Web Applications

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 0.1.4
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-09-01 07:18

Authors

  • blmvxer

Installation

nimble install netTest
choosenim install netTest
git clone https://github.com/blmvxer/netTest

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
netTest - - - - - - -

Dependencies

Package Version Optional
nim >= 1.2.6 No

Source

Repository https://github.com/blmvxer/netTest
Homepage https://github.com/blmvxer/netTest
Registry Source nimble_official

README

netTest

Basic Internet Test for Nim Web Projects

How to use
copy netTest.nim to the projects src folder
import netTest into which ever file will test the connection

after importing you can use testConn("service", timeout)
service being either google or cloudflare and timeout in miliseconds

Basic usage
import netTest
echo("Testing google")
testConn(google, port, 2000)

Output: @[true, true] or @[false, false]

testConn proc's
testConn([cloudflare, google], port, timeout)
output: @[bool, bool]

testConn("server", port, timeout)
output: bool

testConn(@["server0", "server1", "server2"], port, timeout)
output: @[bool, bool, bool]