FileBlock
Extends
Constructors
Constructor
new FileBlock(
filename,content,start,end,tag,options?):FileBlock
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns
FileBlock
Overrides
Properties
| Property | Modifier | Type | Default value | Inherited from |
|---|---|---|---|---|
|
|
|
| ||
|
|
|
|
‐ | |
|
|
|
| ||
|
|
|
| ||
|
|
|
|
‐ | |
|
|
|
|
Methods
addBlockToContent()
protectedaddBlockToContent(existingContent):string
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
string
buildContent()
protectedbuildContent():Promise<string>
Returns
Promise<string>
Inherited from
buildHeader()
protectedbuildHeader():string
Returns
string
Inherited from
buildPadding()
protectedbuildPadding(existingContent):""| "\n" | "\n\n"
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
"" | "\n" | "\n\n"
createComment()
protectedcreateComment(comment):string
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
string
Inherited from
getExistingContent()
protectedgetExistingContent():Promise<readonly [string,FileHandle] | readonly ["",null]>
Returns
Promise<readonly [string, FileHandle] | readonly ["", null]>
getSlices()
protectedgetSlices(existingContent): readonly [string,"",false] | readonly [string,string,true]
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
readonly [string, "", false] | readonly [string, string, true]
unlink()
unlink():
Promise<void>
Returns
Promise<void>
Overrides
write()
write():
Promise<void>
Returns
Promise<void>