A small collection of utility functions to convert machine-readable out to human friendly
Takes a number of bits and coverts it to a human readable amount of MiB
Parameters
$n_bits A number of bits
$n_bits
Returns
$n_bits * 1_000_000 . "MiB"
Takes a unix timestamp and puts it in a human relatable form (delta from now)
$timestamp Int or string containing a unix timestamp
$timestamp
A string describing how long ago this timestamp was
The famous id() function
id()
$x Some value or object
$x
To install Wireguard::WGmeta::Utils, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wireguard::WGmeta::Utils
CPAN shell
perl -MCPAN -e shell install Wireguard::WGmeta::Utils
For more information on module installation, please visit the detailed CPAN module installation guide.