13 releases (1 stable)
1.0.0 | Oct 11, 2024 |
---|---|
0.5.0 | Jan 14, 2024 |
0.4.2 | Jan 12, 2024 |
0.3.0 | Feb 17, 2022 |
0.1.3 | Jan 3, 2021 |
#1458 in Command line utilities
7KB
141 lines
ip2d
A converter for IP addresses.
Usage
A converter for IP Addresses
Usage: ip2d [OPTIONS] [ip]
Arguments:
[ip] Converts an IP Address to an integer
Options:
-r, --reverse <number> Converts an integer to an IP Address
-x, --hex Converts an IP Address to a hex number
-6, --v6 Force print an IPv6
-h, --help Print help
-V, --version Print version
Examples
> ip2d 127.0.0.1
2130706433
> ip2d -r 230451
0.3.132.51
> ip2d -x 127.0.2.2
0x7f000202
> ip2d a:e8:156b::34
51941356147591854558638430402641972
> ip2d -r 90392037 -6
::563:45e5
> ip2d -x ::23 -6
0x00000000000000000000000000000023
Dependencies
~1MB
~17K SLoC