ip-wrapper

1.1.1 • Public • Published

IP Wrapper

Overview

IP Wrapper is a Node.js library that provides functions for managing network interfaces and IP addresses on a Linux system using the ip command.

Installation

To install the library, use npm:

npm install ip-wrapper

Usage

const ipWrapper = require('ip-wrapper');

(async () => {
    const addresses = await ipWrapper.addr.show();
    await ipWrapper.addr.add('enp6s0', '6.6.6.6/32');
    await ipWrapper.addr.remove('enp6s0', '6.6.6.6/32');
    await ipWrapper.addr.flush('enp6s0');
})();

Examples

All examples are located in the examples directory.

Tests

We use Jest for testing. To run the tests, use the following command:

npm run test

LICENSE

View the LICENSE.md file.

/ip-wrapper/

    Package Sidebar

    Install

    npm i ip-wrapper

    Weekly Downloads

    15

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    36.4 kB

    Total Files

    14

    Last publish

    Collaborators

    • alchemillahq