Skip to content

Library for managing/viewing network interfaces and IP addresses on Linux systems using the ip command underneath

License

Notifications You must be signed in to change notification settings

AlchemillaHQ/ip-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Library for managing/viewing network interfaces and IP addresses on Linux systems using the ip command underneath

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published