Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dkvz/iplookup-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dkvz/iplookup-cli

Queries IP location databases and shows info on the owner and their IP ranges

  • 3.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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.

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

FAQs

Package last updated on 12 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc