# get-ip

> Simple CLI tool to get your IP address.

Latest version **2.0.0** (published 2017-09-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-ip
pnpm add get-ip
yarn add get-ip
bun add get-ip
```

Provides the command `get-ip`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2017-09-23 |
| First published | 2016-02-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | alonalon |
| Maintainers | alonalon |
| Keywords | cli-app, cli |

## Links

- npm: https://www.npmjs.com/package/get-ip
- Repository: https://github.com/alonalon/get-ip
- Homepage: https://github.com/alonalon/get-ip#readme
- Issues: https://github.com/alonalon/get-ip/issues
- npm.io page: https://npm.io/package/get-ip

## Dependencies (2)

- [meow](https://npm.io/package/meow.md) ^3.7.0
- [clipboardy](https://npm.io/package/clipboardy.md) ^1.1.4

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2017-09-23
- 1.3.0 — 2017-07-03
- 1.2.0 — 2017-01-01
- 1.1.1 — 2016-04-15
- 1.1.0 — 2016-02-17
- 1.0.0 — 2016-02-17

## README

# get-ip [![Build Status](https://travis-ci.org/alonalon/get-ip.svg?branch=master)](https://travis-ci.org/alonalon/get-ip)

> Simple CLI tool for get your internal IP addresses


## Install

```
$ npm install get-ip
```


## Usage

```js
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](https://github.com/alonalon)

---
_Source: https://npm.io/package/get-ip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
