ip-geo-lookup

1.0.4 • Public • Published

Installation

You can install the ip lookup module using npm:

npm install ip-geo-lookup

Usage

To use the typer-effect module in your Node.js project, you can import the module like this:

const lookup = require('ip-geo-lookup');

You can then call the lookup function with the host to lookup the location:

lookup('example.com', (err, result) => {
    if (err) {
      console.error(err);
    } else {
      console.log(result);
    }
  });

Example

Here's an example of how you can use the ip lookup module to lookup the location of an ip or domain:

const { lookup } = require('./lookup.js');

lookup('example.com', (err, result) => {
    if (err) {
      console.error(err);
    } else {
      console.log(result);
    }
  });

Package Sidebar

Install

npm i ip-geo-lookup

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

1.69 kB

Total Files

3

Last publish

Collaborators

  • kittycats