diff options
author | Heinrich Fenkart <hnrch02@gmail.com> | 2014-11-12 05:05:42 +0300 |
---|---|---|
committer | Heinrich Fenkart <hnrch02@gmail.com> | 2014-12-18 08:14:16 +0300 |
commit | 12124c2e7785bbde64f38bfeff95ffd618b7cc38 (patch) | |
tree | 07d38c1fcf20b13b51484a91a678b76af3b62c38 /README.md | |
parent | 7ff62ba625655a3ca8c2bba40c7b8794a9880fcd (diff) |
Usage instructions for linting stdin in README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -35,6 +35,17 @@ The CLI also accepts a `--disable` (or `-d`) option to disable certain lint chec $ bootlint -d W002,E020 /path/to/some/webpage.html another_webpage.html [...] ``` +The CLI will also process `stdin` input which means that you can pipe into Bootlint: +``` +$ cat mypage.html | bootlint +``` +Or you could use a heredoc (mostly useful for quick testing): +``` +$ bootlint << EOF +<button class="btn btn-default">Is this correct Bootstrap markup, Bootlint?</button> +EOF +``` + ### In the browser Use the following [bookmarklet](http://en.wikipedia.org/wiki/Bookmarklet) that's powered by [BootstrapCDN](http://www.bootstrapcdn.com/#bootlint_tab): ``` |