File
class
File
Constructor
constructor
Constructs a File from the given buffer
Parameters:
buffer: Buffer
The buffer
name: string
The file name
options: any
Provide `options.type` to set the mime type of the file's
content (such as image/jpeg) and `options.lastModified` to set the last modified date
(defaults to the current date)
Returns:
FileProperties
buffer
The buffer
Buffer
name
The file name
string
Methods
toString
toString(): string
Returns a string representation of an object.
Returns:
stringAccessors
[toStringTag]
