๐Ÿ“ฆ 0xflotus / ip2d-rust

A converter for IP addresses

โ˜… 6 stars โ‘‚ 4 forks ๐Ÿ‘ 6 watching โš–๏ธ MIT License
clihacktoberfesthacktoberfest-acceptedipv4ipv6
๐Ÿ“ฅ Clone https://github.com/0xflotus/ip2d-rust.git
HTTPS git clone https://github.com/0xflotus/ip2d-rust.git
SSH git clone git@github.com:0xflotus/ip2d-rust.git
CLI gh repo clone 0xflotus/ip2d-rust
dependabot[bot] dependabot[bot] build(deps): bump clap from 4.5.53 to 4.5.54 (#218) de1bd62 17 days ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ src
๐Ÿ“ test
๐Ÿ“„ .gitignore
๐Ÿ“„ Cargo.lock
๐Ÿ“„ Cargo.toml
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ README.md

ip2d

A converter for IP addresses.

Installation

``bash cargo install ip2d ` ## Usage `console 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 `bash > 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 ```