fping
v1.0.3
Published
Node wrapper for fping
Downloads
11
Readme
fping
This is a TypeScript wrapper for the fping CLI utility.
Installation
Use npm to install this project.
npm install fping
Ensure your system has the fping CLI utility installed. On Debian-based systems, this can be done with:
sudo apt install fping
On macOS, this can be done with:
brew install fping
For other Linux-based systems, see if your package manager has fping, if a repository exists for it, or build it from source.
Usage
import ping from 'fping';
// Ping some things
let responses = await ping('google.com', 'microsoft.com');
{
{
"host": "google.com",
"alive": true,
"elapsed": 57
},
{
"host": "microsoft.com",
"alive": true,
"elapsed": 73
}
}
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.