smoweb-validator is a CLI tool to check if a web page respects smolweb HTML subset.
This tool use https://jsoup.org/ HTML5 parser and is written in Java.
https://smolweb.org/specs/index.html
- Java 97.8%
- Shell 2.2%
smolweb-validator
smolweb-validator is a CLI tool to check if a web page respects smolweb HTML subset.
This tool uses jsoup HTML5 parser, a java library distributed under MIT License.
You need a Java Runtime Environment to execute it, and/or a Java Development Kit if you want to build it.
Usage
./smolweb-validate <URL> [--verbose]
java -cp "jsoup-1.21.2.jar:." SmolwebValidator <URL> [--verbose]
jre -cp "jsoup-1.21.2.jar:." SmolwebValidator <URL> [--verbose]
Examples:
./smolweb-validate https://example.com
./smolweb-validate https://example.com --verbose
java -cp "jsoup-1.21.2.jar:." SmolwebValidator https://example.com
java -cp "jsoup-1.21.2.jar:." SmolwebValidator https://example.com --verbose
jre -cp "jsoup-1.21.2.jar:." SmolwebValidator https://example.com
jre -cp "jsoup-1.21.2.jar:." SmolwebValidator https://example.com --verbose
Options:
--verbose Show all errors and detailed statistics
Script: smolweb-validate is a useful script detecting java or jre
Script clean.sh can be used to clean repository from build artifacts:
./clean.sh Removes class files made by compiler
./clean.sh all Removes class files and downloaded JAR file
Test online
It is possible to test smolweb-validator on smolweb.org/validator/.