@e9x/ipi
Version:
A free library/cli tool to get IP information.
12 lines (11 loc) • 432 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const index_js_1 = __importDefault(require("./index.js"));
const [, , ip] = process.argv;
if (!ip)
throw new Error("You must specify an IP address.");
const info = (0, index_js_1.default)(ip);
console.log(info);