From e91d744a21fcc9f640c4d0a866026a749854aa65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20Z=C3=B6rb?= Date: Thu, 25 Jun 2015 23:45:27 +0200 Subject: [PATCH] Update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index e190517..176d0e7 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,27 @@ var inlined = inline(html, critical, { }); ``` +## CLI + +inline-critical works well with standard input. +You can either pass in the html +```bash +cat index.html | inline-critical critical.css +``` +or just flip things around +```bash +cat critical.css | inline-critical index.html +``` +or pass in the fileas as an option +```bash +inline-critical critical.css index.html +``` +without having to worry about the correct order +```bash +inline-critical index.html critical.css +``` +Run `inline-critical --help` to see the list of options. + ## inline(html, styles, options?) - `html` is the HTML you want to use to inline your critical styles, or any other styles