{"library":"posthtml-cli","title":"PostHTML CLI","description":"Command-line interface for PostHTML, a tool for transforming HTML/XML with plugins. Current stable version is 0.10.0, with releases roughly every few months. It supports processing multiple files, glob patterns, custom config files (JSON/JS), and built-in notifications for updates. Compared to alternatives like html-postcss or custom scripts, posthtml-cli provides a simple CLI with plugin loading and file watching. Requires Node >=10. Currently in maintenance mode with no major recent activity.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install posthtml-cli"],"cli":{"name":"posthtml","version":null}},"imports":["npx posthtml-cli --help","posthtml-cli [options] <files>"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install -g posthtml-cli\n# Process a single file\necho '<div class=\"hello\">Hi</div>' > input.html\nposthtml-cli -i input.html -o output.html\n# Process multiple files with a glob\nposthtml-cli 'src/**/*.html' -d dist\n# Use a config file (.posthtmlrc.js)\necho 'module.exports = { plugins: { \"posthtml-include\": {} } }' > .posthtmlrc.js\nposthtml-cli -i src/index.html -o dist/index.html","lang":"javascript","description":"Install globally, process HTML files with plugins defined in config.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}