philia
Preparing search index...
util/common
toBuffer
Function toBuffer
toBuffer
(
data
:
any
,
opts
?:
{
http
?:
boolean
;
path
?:
boolean
}
&
RequestInit
,
)
:
Promise
<
string
|
Buffer
<
ArrayBufferLike
>
>
base64 http file 转为 Buffer
Parameters
data
:
any
数据
opts
:
{
http
?:
boolean
;
path
?:
boolean
}
&
RequestInit
= {}
Optional
http
?:
boolean
是否返回 http
Optional
path
?:
boolean
是否返回文件路径
http
是否返回 http
path
是否返回文件路径
Returns
Promise
<
string
|
Buffer
<
ArrayBufferLike
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
philia
Loading...
base64 http file 转为 Buffer