Socket
Socket
Sign inDemoInstall

mylip

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mylip

A simple cli tool for getting your IPv4 address on your local network.


Version published
Maintainers
1
Install size
4.08 kB
Created

Readme

Source

MyLIp (My Local IP)

MyLIp is a simple command line tool for getting your IPv4 address on your local network.

Usage

Install globally.

npm i -g mylip

After installing, simply run mylip from the command line and you'll see your local IPv4 address printed in the terminal.

Flags

  • mylip -m Return multiple matching IP addresses (if found).
  • mylip -r Returns the IP address without the trailing new line character. Great for piping the address via the command line. For example, on Mac to copy the IP address to the clipboard, you can run mylip -r | pbcopy.

Release notes

  • 0.2.1 (2020-07-22) - Introduced flags.

  • 0.2.0 (2020-07-22) - I was getting inconsistent results with the tool, and so I look into a different way of grabbing the local IP address. I came across this Stack Overflow post and mostly copied it verbatim. It should now work more consistently across platforms and return the correct local IP address.

Keywords

FAQs

Last updated on 22 Jul 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc