clib documentation

Package overview

assertion-macros Simple assertion macros
bench get wall and cpu time for benchmarking
buffer Higher level C-string utilities
bytes Byte string and number conversion utilities
case String case conversion utility
commander Command-line argument parser
describe Simple BDD describe test thingy
fs File system API much like Node's fs module
getch.h getch() implementation
gumbo-parser Gumbo - A pure-C HTML5 parser, adapted to be installable via clib.
hash Hash wrapper around khash
inih simple .INI file parser
is-email Loosely validate an email address
list Simple linked list
log.h Minimal yet colorful logging lib.
mkdirp mkdir -p
ms String to microsecond & millisecond utilities
occurrences Get the number of occurrences of `needle` in `haystack`
ok Super tiny tap output library
path-join Join a path
path-normalize Normalize a path
progress Simple progress bar display for the terminal
repl Create a repl with eval/print/error hooks with given stdin, stdout, and stderr streams
rgba RGB / RGBA parsing and formatting functions
rimraf rm -rf
rot13 Simple ROT13
str-copy Copy a string
str-ends-with Check if a string ends with another string
str-flatten Flatten a char array, ripped out of sphia(1)
str-replace String replacement in C
str-starts-with Check if a string starts with another string
strsplit Split a string into a char array by a given delimiter
substr Get a substring of a string
term Terminal ansi escape goodies
throw Create and throw errors easily
timer Timer with microsecond resolution
timestamp Return a timestamp in milliseconds
trim String trim utility
unlikely Branch prediction macros for gcc
url Parse URLs much like Node's url module
usleep.h usleep implementation using poll() or select()
utf8 A whatwg compliant UTF8 encoding and decoding library
uv-async Async goodies for libuv