ip2d

Crates.ioip2d
lib.rsip2d
version0.5.0
sourcesrc
created_at2021-01-02 03:18:40.807422
updated_at2024-01-14 21:33:44.230685
descriptionA converter for IPv4 addresses
homepagehttps://github.com/0xflotus/ip2d-rust
repositoryhttps://github.com/0xflotus/ip2d-rust
max_upload_size
id330391
size13,341
0xflotus (0xflotus)

documentation

README

ip2d

A converter for IPv4 addresses.

Usage

A converter for IPv4 Addresses

Usage: ip2d [OPTIONS] [ip]

Arguments:
  [ip]  Converts an IPv4 Address to an integer

Options:
  -r, --reverse <number>  Converts an integer to an IPv4 Address
  -x, --hex               Converts an IPv4 Address to a hex number
  -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
Commit count: 183

cargo fmt