Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
/ routes Public archive
forked from tomas/network

The missing network utilities in Node.js.

Notifications You must be signed in to change notification settings

Immoweb/routes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Route Utilies for Node.js

Usage

Get routes

This package has only one method to retrieve all the routes. You can invoke it as follows:

// As provided by Windows, other OSes return a smaller set
interface Route {
    Age: number;
    Caption: string;
    Description: string;
    Destination: string;
    Config: any;
    Information: string;
    InstallDate: string;
    InterfaceIndex: number;
    Mask: string;
    Metric1: number;
    Metric2: number;
    Metric3: number;
    Metric4: number;
    Metric5: number;
    Name: string;
    NextHop: string; // Gateway
    Protocol: number;
    Status: string;
    Type: number;
}

network.get_routes((err, result: Route[]) => { }

Copyright

Forked & improved by Josep Mateu Clemente. Original module written by Tomás Pollak (https://github.com/tomas/network).

License

MIT.

About

The missing network utilities in Node.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%