new TheCode()
- Source:
Methods
(async) format(pattern, optionsopt) → {Promise.<Array>}
Format files
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
pattern |
string | file name | ||
options |
Object |
<optional> |
{} | Optional |
- Source:
Returns:
- Type
- Promise.<Array>
(async) formatFile(filename) → {Promise.<void>}
Format a single file
Parameters:
| Name | Type | Description |
|---|---|---|
filename |
string |
- Source:
Returns:
- Type
- Promise.<void>