Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

canihazip

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canihazip - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "canihazip",
"version": "1.0.0",
"version": "1.0.1",
"description": "Get public IP using canihazip.com.",

@@ -5,0 +5,0 @@ "author": {

@@ -8,9 +8,18 @@ # [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]

### To use it as a node module:
```sh
$ npm install --save canihazip
npm install --save canihazip
```
#### Or to use it as CLI:
```sh
npm install --global canihazip
```
## Usage
### As a node module:
```js

@@ -22,9 +31,11 @@ var canihazip = require('canihazip');

#### As CLI:
```sh
$ npm install --global canihazip
$ canihazip
8.8.8.8
canihazip
```
This will return IP of the current machine, for example: `8.8.8.8`.
## License

@@ -31,0 +42,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc