get-my-own-ip
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

GetIP

A straightforward library designed to streamline automated access to the user's local IP.

Features

  • Retrieve the IPv4 used in the default switch via Windows terminal;
  • Retrieve a list of available IPv4 addresses on your machine.

Tech

GetIP uses a simple Stack:

  • [NodeJS] - Efficient server-side JavaScript runtime for building scalable web applications.
  • [Typescript] - superset of JavaScript
  • [child_process] - Reliable module for executing external processes in Node.js,

Installation

Install the dependencies and devDependencies and start the server.

cd your-project
npm i get-my-own-ip

Development

  • how to use ?
npm init -y
import {getIp, getAll} from 'get-my-own-ip'
const myadress = getIp()
console.log('Endereço IPV4:', myadress);

Readme

Keywords

Package Sidebar

Install

npm i get-my-own-ip

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

4.03 kB

Total Files

6

Last publish

Collaborators

  • solracsiul