@robinpath/ip
v0.3.0
Published
IP address validation, family detection, private-range check, CIDR math, reverse DNS
Readme
@robinpath/ip
IP module for RobinPath.
Why use this module?
The ip module lets you:
- getMyIp
- geolocate
- geolocateBatch
- isPrivate
- isValid
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
robinpath add @robinpath/ipQuick Start
No credentials needed — start using it right away:
ip.geolocateAvailable Functions
| Function | Description |
|----------|-------------|
| ip.getMyIp | getMyIp |
| ip.geolocate | geolocate |
| ip.geolocateBatch | geolocateBatch |
| ip.isPrivate | isPrivate |
| ip.isValid | isValid |
| ip.isIpv4 | isIpv4 |
| ip.isIpv6 | isIpv6 |
| ip.cidrContains | cidrContains |
| ip.cidrRange | cidrRange |
| ip.subnetInfo | subnetInfo |
| ip.reverseDns | reverseDns |
| ip.checkBlacklist | checkBlacklist |
Examples
geolocate
ip.geolocategeolocateBatch
ip.geolocateBatchisPrivate
ip.isPrivateIntegration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/ip";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
ip.geolocate
`);Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/json— JSON module for complementary functionality
License
MIT
