API Reference util v1.3.1
modules
Modules
Creation of module aliases
CSV file parsing functions
Module and function decompiler
Environment utils
Periodically read an append-only log file and parse newly added data.
Guard in
Hexadecimal conversion functions
Miscelaneous list functions
OS supporting commands
PCAP file reader/writer.
Parallel map and multicall.
Profiling functions
Sample restricted remote shell module disabling c:q/0
and init:stop/{0,1}
commands. The shell introduces a replacement command to stop remote node: remote_node_stop/1
equivalent to init:stop/1
.
Simple Metaprogramming for Erlang
SMTP mail client. This module can sent emails to one or more recipients, using primary/backup SMTP servers. Messages can contain attachments.
Implements SNTP query logic. SNTP - Simple Network Time Protocol (RFC-2030).
Implements miscelaneous string functions
Throttle given rate over a number of seconds.
Module to print out terms for logging. Limits by length rather than depth.
Map with TTL key/value eviction.
This is an extension of the shell commands to do all the work! Either place this file in the path accessible to Erlang (via ERL_LIBS) or add this line to the ~/.erlang file:
code:load_abs(os:getenv("HOME") ++ "/.erlang/user_default").
Implementation of coloring handler for the Erlang's logger. See https://github.com/hauleth/logger_colorful.
Log formatter Derived from //kernel/logger/logger_formatter
Parse XML into a hierarchical Erlang term
% Example xml:
<?xml version="1.0" encoding="UTF-8" ?>
<root id="1">
<ele id="2"/>
<ele id="3">vvv\nxxx\n</ele>
</root>
# Usage example
1> xmltree:file(L).
{root,[{id,<<"1">>}],
[{ele,[{id,<<"2">>}],[]},
{ele,[{id,<<"3">>}],<<"vvv\nxxx\n">>}]}
2> Rules = {root, [{id,integer}], [{ele, [{id,integer}], string}]},
2> xmltree:string(L, Rules).
{root,[{id,1}],
[{ele,[{id,2}],[]},{ele,[{id,3}],"vvv\nxxx\n"}]}