← SPL reference

pkg (built-in)

Tiny package manager: copy a bundled library from lib/ into .spl_packages/<name>/ under the working directory, then load it. Named pkg.load because use is reserved for imports.

API

pkg.install("newMath");
pkg.load("newMath");
print.list(pkg.list());

Prefer plain use newMath; when the library already lives on the import path. Use pkg when you want a project-local copy under .spl_packages/.