From d9b920a689dd71bff7f403bd54f997d7c7d82b4e Mon Sep 17 00:00:00 2001 From: guankaishe Date: Wed, 29 May 2013 13:00:51 +0800 Subject: [PATCH] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 62b4fcd..f5d0b9e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ #DoverJS -======== +--- Find unused css selectors from your style-sheet files to the specified HTML URI ## Why DoverJS ? > DoverJS --- Simple, Convenient, Effective; Base on Nodejs; Could find unused selector from DHTML
@@ -13,14 +13,14 @@ Find unused css selectors from your style-sheet files to the specified HTML URI - (检查样式文件在指定页面的冗余style-rules) ## How to use ---- -### Installing + +#### Installing * Install [node@0.8.x](http://nodejs.org). * Install it in npm : `npm install doverjs -g` -### Helping : +#### Helping : Usage: doverjs [options] @@ -36,7 +36,7 @@ Find unused css selectors from your style-sheet files to the specified HTML URI -S, --statistics print statistics in console (输出统计信息) -s, --style covering style-sheet file (指定要检查无用规则的样式文件,可以是远程文件) -### Usage : +#### Usage : * Usage one :
`doverjs -s xxx.css -d http://slider.jitsu.com -o out` @@ -50,7 +50,7 @@ Find unused css selectors from your style-sheet files to the specified HTML URI ![process result](https://raw.github.com/switer/resource/master/statistics.png) -### Multiple Cover use configuration files (批量覆盖的配置文件 ): +#### Multiple Cover use configuration files (批量覆盖的配置文件 ): ```javascript //e.g example/package.js @@ -80,7 +80,7 @@ Find unused css selectors from your style-sheet files to the specified HTML URI ``` -## API Reference +### API Reference 假如你在npm中安装了doverjs,你可以在nodejs的应用中这样使用: var dover = require('doverjs');