get-ip

2.0.0 • Public • Published

get-ip Build Status

Simple CLI tool for get your internal IP addresses

Install

$ npm install get-ip

Usage

const getIp = require('get-ip');
 
getIp();
//=> ['192.168.9.104', '192.168.9.104']

API

getIp()

Returns an Array of IPv4 addresses.

getIp.v6()

Returns an Array of IPv6 addresses.

CLI

$ npm install --global get-ip
$ get-ip --help

  Usage
    $ get-ip

  Options
    -c, --copy  Copy first IP to clipboard
    -6, --ipv6  Use IPv6

  Examples
    $ get-ip
    192.168.9.58

    $ get-ip --copy
    192.168.9.58

License

MIT © alonalon

Readme

Keywords

Package Sidebar

Install

npm i get-ip

Weekly Downloads

4

Version

2.0.0

License

MIT

Last publish

Collaborators

  • alonalon