Skip to content

@longmo-utils/node / copy

Function: copy()

ts
function copy(src, dest): Promise<void>;

递归复制文件或目录

Parameters

ParameterTypeDescription
srcstring源路径
deststring目标路径

Returns

Promise<void>

Example

ts
await copy('./src', './dist')

Released under the MIT License.