fping
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

fping

version badge vuln badge

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.

License

GPL-3.0

Readme

Keywords

Package Sidebar

Install

npm i fping

Weekly Downloads

3

Version

1.0.3

License

GPL-3.0

Unpacked Size

51.8 kB

Total Files

11

Last publish

Collaborators

  • notm1ke