Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootlint.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Fenkart <hnrch02@gmail.com>2014-11-12 05:05:42 +0300
committerHeinrich Fenkart <hnrch02@gmail.com>2014-12-18 08:14:16 +0300
commit12124c2e7785bbde64f38bfeff95ffd618b7cc38 (patch)
tree07d38c1fcf20b13b51484a91a678b76af3b62c38 /README.md
parent7ff62ba625655a3ca8c2bba40c7b8794a9880fcd (diff)
Usage instructions for linting stdin in README
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9056a1e..13b0e12 100644
--- a/README.md
+++ b/README.md
@@ -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):
```