Files
prosperon/docs/api/modules/packer.md
John Alanbrook 83b798e365 Add Hugo website and rewrite docs to match current engine
New Hugo site in website/ with prosperon.dev theme (blue/gold/castle
aesthetic), docs sidebar navigation, and content pages. Rewrote all
doc files to align with the actual codebase: compositor+film2d
rendering, use() modules (no global prosperon object), Pit language,
script+JSON entity model. Added entities.md, front matter to all
70+ API docs, and updated API index for current module architecture.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 18:09:55 -06:00

952 B

title, type
title type
packer docs

packer

getAllFiles(dir) function

Return a list of all files in the given directory that are not matched by .prosperonignore, skipping directories.

dir: The directory to search.

Returns: An array of file paths found.

gatherStats(filePaths) function

Analyze a list of files and categorize them as modules, programs, images, or other.

filePaths: An array of file paths to analyze.

Returns: An object { modules, programs, images, other, total } with counts.

pack(dir, outPath) function

Create a ZIP archive of all files (skipping those matched by .prosperonignore) in the specified directory and write it to outPath. This uses the miniz module.

dir: The directory to zip.

outPath: The path (including filename) for the resulting ZIP file.

Returns: None (synchronous). Throws an Error if the directory does not exist.