Cross platform network utility to fetch the routes from a system. Based off the 'network' module developed by Tomas Pollak.
Last updated 3 years ago by immoweb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @immoweb/routes 
SYNC missed versions from official npm registry.

Route Utilies for Node.js


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[]) => { }


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



Current Tags

  • 0.6.0                                ...           latest (3 years ago)

1 Versions

  • 0.6.0                                ...           3 years ago
Maintainers (1)
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 3
Dependencies (3)
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |