new FileWriter()
- Source:
Methods
writeNode(outputPath, file, node) → {Promise}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
outputPath |
String
|
the output directory |
file |
String
|
the name of the file to be written |
node |
Node
|
the html node to be written |
Returns:
- Type:
-
Promise
a promise that will be resolved after the write operation was finished
writeNodes(outputPath, file, nodes) → {Promise}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
outputPath |
String
|
the output directory |
file |
String
|
the name of the file to be written |
nodes |
Array.<Node>
|
the html node to be written |
Returns:
- Type:
-
Promise
a promise that will be resolved after the write operation was finished