Skip to content

cz848/htmllint-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

htmllint-cli

npm version ISC license dependencies devDependencies

stories in ready

Installing

Install nodejs and install the htmllint-cli module globally:

# you may have to sudo this line depending on your installation
$ npm install -g htmllint-cli

Once installed, create a configuration file for your project:

$ cd your-project
$ htmllint init

This should create a .htmllintrc file in your current directory. This file should be a valid JSON file that contains options defined on the htmllint wiki.

After creating your configuration, you can lint some files like so:

$ htmllint index.html
# also supports glob expansions
$ htmllint **/*.html
$ htmllint # by default expands to **/*.html

$ htmllint --help # to get more information

Contributing

You can use npm link to help with development.

About

A command line interface for htmllint.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%