ip-tools

1.1.2 • Public • Published

ip tool

Description

  • fetch computer ip address with node
  • copy your ip address to clipboard
  • open your server in browser

Install

for node

$  npm install ip-tools

for command line

$  npm install ip -g

Usage

Get your ip

nodejs

var ip = require('ip');
console.log(ip);

command line

$ ip
# this prints: xxx.xx.xxx.xxx 

Copy ip to clipboard

$ getip
# prints: copy done 
# then you can use `ctrl + v` 

Open local server

# default port: 80 
$ open
 
# or 
$ open -p 8080
 
# or 
$ open --port 8080 

Readme

Keywords

Package Sidebar

Install

npm i ip-tools

Weekly Downloads

1

Version

1.1.2

License

MIT

Last publish

Collaborators

  • angusfu
  • wemlin
  • yywl