slimock
v0.0.7
Published
A CLI utility that optimizes HTML snapshots by removing unused styles and preparing them for LLM context
Maintainers
Readme
Slimock
A CLI utility that normalizes HTML snapshots, removes unused styles via PurgeCSS, and prepares the output for CDN-hosted Tailwind CSS.
Usage
npx slimock input.html output.html
# or locally during development
npm run purge input.html output.htmlLogging
LOG_LEVEL(default:info) - Set todebugfor verbose output
Logs are emitted through pino-pretty with colorized, human-readable output.
Development
npm test # run Vitest suites once
npm run test:watch
npm run typecheckVitest covers the pure CSS/HTML helpers and logger factory so you can iterate with confidence before exercising the CLI end-to-end.
