nx.js
NamespacesSwitchFunctions

rename

rename(path, dest): Promise<void>

Renames a file or directory.

Parameters

ParameterTypeDescription
pathPathLikeSource file path to rename.
destPathLikeDestination file path to rename to.

Returns

Promise<void>

On this page