A fast and modern Node.js CLI tool to analyze web pages for SEO best practices. Built with cheerio and axios.
Un tool CLI veloce e moderno in Node.js per analizzare le pagine web secondo le best practices SEO. Costruito con cheerio e axios.
- Title Tag Analysis: Validates presence and length. (Valida presenza e lunghezza.)
- Meta Description: Checks character count. (Controlla il conteggio caratteri.)
- H1 Header Check: Ensures semantic structure. (Assicura una struttura semantica.)
- Image ALT Attributes: Identifies accessibility issues. (Identifica problemi di accessibilità.)
- CLI Interface: Simple command line usage. (Semplice utilizzo da riga di comando.)
-
Clone the repository:
git clone <repository-url> cd node-seo-tool
-
Install dependencies:
npm install
Run the tool providing a URL:
node index.js https://example.comor if you linked it globally:
node-seo-tool https://example.com- Axios: HTTP client for fetching pages.
- Cheerio: Fast HTML parser (jQuery-like).
- Chalk: Terminal string styling.
- Commander: CLI argument parsing.
The code uses ES Modules and modern async/await patterns. Il codice utilizza ES Modules e moderni pattern async/await.