File Processors
- Source:
Methods
(static) processClass(content) → {string}
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
processed
- Type
- string
(static) processComment(content) → {string}
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
processed
- Type
- string
(static) processCSSProp(content) → {Promise.<string>}
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
processed
- Type
- Promise.<string>
(static) processCSSRule(content) → {Promise.<string>}
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
processed
- Type
- Promise.<string>
(static) processFileEnd(content) → {string}
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
processed
- Type
- string
(static) processJSDoc(content, optionsopt)
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
content |
string | |||
options |
Object |
<optional> |
{} |
- Source:
(static) processJSExport(content) → {string}
Process export statement
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
processed
- Type
- string
(static) processJSImport(content) → {string}
Process import statement
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
processed
- Type
- string
(static) processJSObject(content) → {string}
Process object expressions
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
processed
- Type
- string
(static) processJSPrettier(content) → {Promise.<string>}
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
processed
- Type
- Promise.<string>
(static) processJSRequire(content) → {string}
Process require statement
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
processed
- Type
- string
(static) processJSRequire(content) → {string}
Process js "use strict" statement
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
processed
- Type
- string
(static) processJSSwitch(content) → {string}
Process js switch statement
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
processed
- Type
- string
(static) processJSUnused(content) → {string}
Removed unused vars
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
processed
- Type
- string
(static) processJSXAttribute(content) → {string}
Process JSX attributes
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
processed
- Type
- string
(static) processYAML(content) → {string}
Parameters:
| Name | Type | Description |
|---|---|---|
content |
string |
- Source:
Returns:
- Type
- string