🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

interfacez

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

interfacez

1.0.4
Rubygems
Version published
Maintainers
1
Created
Source

Interfacez

Simplified network interfaces API

Installation

$ gem install interfacez

Usage

require 'interfacez'

Interfacez.default
# => "en0"

Interfacez.loopback
# => "lo0"

Interfacez.all do |interface|
  # do something with interface name
  puts interface
end

Interfacez.ipv4_address_of("en0")
# => "192.168.1.2"

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 22 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

OSZAR »