Methods
Static less
- less(filepath: string, from?: number, maxlines?: number, encoding?: BufferEncoding): Promise<string | Buffer>
-
Parameters
-
filepath: string
-
from: number = 0
-
maxlines: number = -1
-
encoding: BufferEncoding = 'utf8'
Returns Promise<string | Buffer>
Static open
- open(filepath: string): Promise<number>
-
Parameters
Returns Promise<number>
Static readByByte
- readByByte(filepath: string, from?: number, length?: number): Promise<unknown>
-
Parameters
-
filepath: string
-
from: number = 0
-
length: number = 0
Returns Promise<unknown>
Static stat
- stat(filepath: string): Promise<Stats>
-
Parameters
Returns Promise<Stats>
Static statInfo
- statInfo(filepath: string): Promise<IFileStat>
Static tail
- tail(filepath: string, maxlines?: number, encoding?: BufferEncoding): Promise<string | Buffer>
-
Parameters
-
filepath: string
-
maxlines: number = -1
-
encoding: BufferEncoding = 'utf8'
Returns Promise<string | Buffer>