Constructors
constructor
- new Etag(url: string, mtime: Date, size: number, data?: Buffer): Etag
-
Parameters
-
url: string
-
mtime: Date
-
size: number
-
Optional data: Buffer
Properties
Optional data
data: Buffer
mtime
mtime: Date
size
size: number
url
url: string
Methods
stringify
-
Returns string
Static fromFile
- fromFile(url: string, file: File, mode?: "easy" | "strict"): Etag
-
Parameters
-
url: string
-
-
Default value mode: "easy" | "strict" = "easy"
Static parse
-
Parameters
从文件创建Etag