pwa-wizard-cli
v1.0.0
Published
An interactive, zero-dependency CLI tool to instantly convert any HTML file into a Progressive Web App (PWA).
Maintainers
Readme
PWA Wizard CLI 🪄
A zero-dependency, interactive command-line tool that instantly converts any HTML file into a fully functional Progressive Web App (PWA).
It automatically scans your directory for HTML files, extracts existing meta tags, generates a manifest.json, creates a sw.js (Service Worker), and injects the necessary tags into your HTML safely.
Features
🚀 Zero Dependencies: Pure Node.js. Extremely fast and lightweight.
🤖 Smart Extraction: Automatically pulls
<title>, description, theme color, and language from your existing HTML.🎨 Auto-Generated Icons: Automatically generates valid PWA icons using modern placeholder services based on your theme color.
🛡️ Safe Backups: Creates a
.bakbackup of your HTML file before making any injections.
Usage
You can run this tool instantly in any directory using npx:
``` npx pwa-wizard-cli ```
How it works
Navigate to your project folder (where your
index.htmllives).Run the command.
Select your target HTML file from the auto-generated list.
Confirm or override the extracted PWA properties.
Done! Your app is now a PWA.
Local Installation
If you prefer to install it globally on your machine:
``` npm install -g pwa-wizard-cli pwa-wizard ```
