Skip to main content
Version: 1.x

File

Extended by​

Constructors​

Constructor​

new File(filename, content, tag, options?): File

Parameters​

ParameterType

filename

string

content

string

tag

string

options?

FileOptions

Returns​

File

Properties​

PropertyModifierTypeDefault value

content

public

string

undefined

filename

public

string

undefined

persisted

public

boolean

false

tag

public

string

undefined

Methods​

buildContent()​

protected buildContent(): Promise<string>

Returns​

Promise<string>


buildHeader()​

protected buildHeader(): string

Returns​

string


createComment()​

protected createComment(comment): string

Parameters​

ParameterType

comment

string

Returns​

string


unlink(): Promise<void>

Returns​

Promise<void>


write()​

write(): Promise<void>

Returns​

Promise<void>