Provides logging options for IPv4's
- Source
Classes
Members
(inner) BIN
2
Binary constant
- Source
(inner) DEC
10
Decimal constant
- Source
(inner) HEX
16
Hexadecimal constant
- Source
(inner) STDOUT
1
STDOUT constant
- Source
Methods
(inner) log(order)
Log the IPv4 instance in the console
Parameters:
Name | Type | Description |
---|---|---|
order | Number | 'HEX', 'DEC', 'BIN', 'STDOUT' , all static members of IPv4 |
- Source
Example
const ip = IPv4.from('127.0.0.1');
ip.log();
// ip.log(IPv4.HEX);
// ip.log(IPv4.STDOUT);
(inner) log_bin()
- Source
(inner) log_dec()
- Source
(inner) log_hex()
- Source