How markhermano/paperizer works
Paperizer is a small Vue composable for printing a selected DOM element. A consumer invokes its entry point, which finds the element, resolves print-window options, opens a preview window, copies the element’s HTML into it, and attaches optional styles; the entry point then focuses and optionally prints and closes that window. The main runtime calls are visible in the excerpts; the README confirms the product purpose but does not document additional capabilities.
Main entry points: main.ts Paperizer Entry · options.ts Print Options · window.ts Window Setup · component.ts Element Lookup
Components 9
Other components
- Vue Consumer
- Paperizer Entry
src/main.ts - Element Lookup
src/composables/component.ts - Print Options
src/composables/options.ts - Option Types
src/types/types.ts - Window Setup
src/composables/window.ts - HTML Copy
src/composables/windowContent.ts - Style Attach
src/composables/style.ts - Browser Preview
Connections 9
- Vue Consumer → Paperizer Entry: invokes composable
README.md - Paperizer Entry → Element Lookup: selects element
src/main.ts - Paperizer Entry → Print Options: resolves options
src/main.ts - Print Options → Option Types: uses option contract
src/composables/options.ts - Paperizer Entry → Window Setup: opens preview
src/main.ts - Window Setup → Browser Preview: opens window
src/composables/window.ts - Paperizer Entry → HTML Copy: writes HTML
src/main.ts - Paperizer Entry → Style Attach: attaches styles
src/main.ts - Paperizer Entry → Browser Preview: prints and focuses
src/main.ts