9p.is project utility libraries
Find a file
2026-05-17 19:42:20 -07:00
lib/NP libvz -> libnp 2026-05-17 19:40:41 -07:00
t libvz -> libnp 2026-05-17 19:40:41 -07:00
LICENSE libvz -> libnp 2026-05-17 19:40:41 -07:00
README.md README: fix ref to 9p.is 2026-05-17 19:42:20 -07:00

libnp

A collection of utility libraries used in various brinstar & 9p.is projects.

NP::Config

A human-readable and writable configuration file format (compatible with legacy Azusa::Config & Sylfaen::Config, if any copies of those still exist in the wild) Dependencies:

  • Tie::Hash::Indexed

NP::Logger

Basic logging library supporting logfile and syslog outputs. Includes stack traces in warning and fatal messages. Perl's optimiser will completely elide log calls if they are excluded by the current log level, allowing for debug calls to be left in hot loops without sacrificing performance.

NP::Util

Miscellaneous helper functions that aren't complicated enough to justify their own module.

NP::UUID

Utility functions to generate properly formatted UUIDv4s as well as arbitrary random strings.

Testing

Tests can be run in-tree with prove -l