Socket
Socket
Sign inDemoInstall

internal-ip

Package Overview
Dependencies
51
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

license

30

cli.js
#!/usr/bin/env node
'use strict';
var pkg = require('./package.json');
var meow = require('meow');
var internalIp = require('./');
var argv = process.argv.slice(2);
function help() {
console.log([
'',
' ' + pkg.description,
'',
' Example',
' $ internal-ip',
' 192.168.0.123'
].join('\n'));
}
meow({
help: [
'Example',
' $ internal-ip',
' 192.168.0.123'
].join('\n')
});
if (argv.indexOf('--help') !== -1) {
help();
return;
}
if (argv.indexOf('--version') !== -1) {
console.log(pkg.version);
return;
}
console.log(internalIp());
{
"name": "internal-ip",
"version": "1.0.0",
"version": "1.0.1",
"description": "Get your internal IPv4 address",

@@ -10,7 +10,5 @@ "license": "MIT",

"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
"url": "sindresorhus.com"
},
"bin": {
"internal-ip": "cli.js"
},
"bin": "cli.js",
"engines": {

@@ -37,2 +35,5 @@ "node": ">=0.10.0"

],
"dependencies": {
"meow": "^3.1.0"
},
"devDependencies": {

@@ -39,0 +40,0 @@ "ava": "0.0.4",

@@ -8,3 +8,3 @@ # internal-ip [![Build Status](https://travis-ci.org/sindresorhus/internal-ip.svg?branch=master)](https://travis-ci.org/sindresorhus/internal-ip)

```sh
```
$ npm install --global internal-ip

@@ -24,3 +24,3 @@ ```

```sh
```
$ npm install --save internal-ip

@@ -37,4 +37,9 @@ ```

## Related
See [public-ip](https://github.com/sindresorhus/public-ip) or [ipify](https://github.com/sindresorhus/ipify) to get your external IP address.
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)
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