@@ -16,7 +16,8 @@ var Comb = require('csscomb-core');
1616var comb = new Comb (options, ' css' );
1717```
1818
19- For a simple example of usage take a look [ at a template project] ( https://github.com/csscomb/core-template ) .
19+ For a simple example of usage take a look
20+ [ at a template project] ( https://github.com/csscomb/core-template ) .
2021Feel free to fork it and modify.
2122
2223## List of public methods
@@ -60,6 +61,39 @@ Can be used inside plugin's `process` method.
6061
6162- Return: * {String}* Syntax name
6263
64+ ### comb.lintPath(path)
65+
66+ Lint a file or a directory.
67+
68+ - Params: * {String}* Path to file or directory</td >
69+ - Return: * {Promise}*
70+
71+ ### comb.lintDirectory(path)
72+
73+ Lint all files in a directory.
74+
75+ - Params: * {String}* Path to file or directory</td >
76+ - Return: * {Promise}*
77+
78+ ### comb.lintFile(path)
79+
80+ Lint a single file.
81+
82+ - Params: * {String}* Path to file
83+ - Return: * {Promise}*
84+
85+ ### comb.lintString(string, options)
86+
87+ Lint a string.
88+
89+ - Params:
90+ * {String}* Code to process
91+ * {{context: String, filename: String, syntax: String}}* Options (optional)
92+ where * context* is
93+ Gonzales PE rule, * filename* is a file's name that is used to display errors and
94+ * syntax* is syntax name with ` css ` being a default value.
95+ - Return: * {Promise<Array >}* Resolves with list of found errors.
96+
6397### comb.processPath(path)
6498
6599Process a file or a directory.
@@ -91,7 +125,7 @@ Process a string.
91125 where * context* is
92126 Gonzales PE rule, * filename* is a file's name that is used to display errors and
93127 * syntax* is syntax name with ` css ` being a default value.
94- - Return: * {String }* Processed string
128+ - Return: * {Promise< string > }* Resolves with processed string.
95129
96130## Writing a plugin
97131
0 commit comments