Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lgraubner/node-w3c-validator-cli
Crawls a given site and checks for W3C validity.
https://github.com/lgraubner/node-w3c-validator-cli
cli crawler w3c w3c-validator
Last synced: about 8 hours ago
JSON representation
Crawls a given site and checks for W3C validity.
- Host: GitHub
- URL: https://github.com/lgraubner/node-w3c-validator-cli
- Owner: lgraubner
- License: mit
- Created: 2015-05-25T19:14:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-12T12:29:47.000Z (about 9 years ago)
- Last Synced: 2025-02-01T15:18:04.662Z (5 days ago)
- Topics: cli, crawler, w3c, w3c-validator
- Language: JavaScript
- Homepage:
- Size: 19.9 MB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node W3C Validator
[![Travis](https://img.shields.io/travis/lgraubner/node-w3c-validator-cli.svg)](https://travis-ci.org/lgraubner/node-w3c-validator-cli) [![David](https://img.shields.io/david/lgraubner/node-w3c-validator-cli.svg)](https://david-dm.org/lgraubner/node-w3c-validator-cli) [![npm](https://img.shields.io/npm/v/w3c-validator-cli.svg)](https://www.npmjs.com/package/w3c-validator-cli) [![David Dev](https://img.shields.io/david/dev/lgraubner/node-w3c-validator-cli.svg)](https://david-dm.org/lgraubner/node-w3c-validator-cli#info=devDependencies)
> Crawls a given site and checks for W3C validity.
## Installation
```BASH
$ npm install -g w3c-validator-cli
```## Usage
```BASH
$ w3c-validator [options]
```The crawler will fetch all sites matching folder URLs and certain file extensions.
**Tip**: Omit the URL protocol, the crawler will detect the right one.
**Important**: Executing the w3c-validator with sites using HTML `base`-tag along with links *without* leading slashes will probably not work.
## Options
```BASH
$ w3c-validator --helpUsage: w3c-validator [options]
Options:
-h, --help output usage information
-V, --version output the version number
-l, --log log errors in a text file
-q, --query consider query string
-v, --verbose show error details
```### log
Create a log file containing all invalid URL's including error details.
### query
Consider URLs with query strings like `http://www.example.com/?foo=bar` as indiviual sites and add them to the sitemap.
### verbose
Output additional error information in the console.