@makerx/repository-website-generator / shared/build-time/utilities
Table of contents
Functions
Functions
asyncGeneratorToArray
▸ asyncGeneratorToArray<T
>(asyncIterator
): Promise
<T
[]>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
asyncIterator | AsyncGenerator <T , any , unknown > |
Returns
Promise
<T
[]>
Defined in
shared/build-time/utilities.ts:4
getFilesRecursive
▸ getFilesRecursive(dirPath
, isRelative?
): AsyncGenerator
<string
>
Parameters
Name | Type | Default value |
---|---|---|
dirPath | string | undefined |
isRelative | boolean | true |
Returns
AsyncGenerator
<string
>
Defined in
shared/build-time/utilities.ts:10
getMarkdownFileNames
▸ getMarkdownFileNames(relativePath
): Promise
<string
[]>
Parameters
Name | Type |
---|---|
relativePath | string |
Returns
Promise
<string
[]>
Defined in
shared/build-time/utilities.ts:26
readFile
▸ readFile(relativePath
, fileName
): Buffer
Parameters
Name | Type |
---|---|
relativePath | string |
fileName | string |
Returns
Buffer