3.1.0 • Published 8 months ago

@dkvz/iplookup-cli v3.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

iplookup-cli

I needed something to quickly check IPs and networks and registered AS without reaching the limit on some API or website.

Kinda niche to my specific uses.

Expects 3 environement variables that I use for other scripts of mine (see .env).

Usage

Provide a list of IP addresses as arguments.

node iplookup.js 8.8.8.8 1.1.1.1

Options:

  • -s makes it so only the country code is printed.
  • -n disables reverse DNS lookup.

As of version 3.1 you can also use domain names or even full URLs as arguments and the script will resolve them for you and use the first resolved IPv4 address found.

NPM package

Can be installed as a CLI tool from npm:

npm install -g @dkvz/iplookup-cli

Which should allow you to use the command iplookup-node. For instance: iplookup-node 8.8.8.8 1.1.1.1.

TODO

  • Add error handling
  • Could be a CLI npm package. Just set the env varibles globally in bashrc or something to set your own database paths
  • Add a flag to query the GeoIP API instead of using the local DBs
3.1.0

8 months ago

3.0.0

2 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.2

4 years ago

1.0.0

4 years ago