Namespace: vinylHelpers
Functions
readVinylBuffer
▸ readVinylBuffer(file
): Promise
<Buffer
>
Helper function to asynchronously read Vinyl contents to a buffer from all types of Vinyl files.
Parameters
Name | Type | Description |
---|---|---|
file |
File |
Vinyl file to read from |
Returns
Promise
<Buffer
>
readVinylJSON
▸ readVinylJSON(file
): Promise
<any
>
Helper function to asynchronously read Vinyl contents and parse the file into a JSON data object.
Parameters
Name | Type | Description |
---|---|---|
file |
File |
Vinyl file to read from |
Returns
Promise
<any
>
readVinylText
▸ readVinylText(file
): Promise
<string
>
Helper function to asynchronously read Vinyl contents as a string.
Parameters
Name | Type | Description |
---|---|---|
file |
File |
Vinyl file to read from |
Returns
Promise
<string
>