ip-geo-lookup
v1.0.4
Published
You can install the ip lookup module using npm: ```javascript npm install ip-geo-lookup ```
Downloads
4
Maintainers
Readme
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);
}
});