Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Easy-Editor/EasyEditor
/ formatTargetDir
Function
formatTargetDir
packages/create-easy-editor/src/utils.ts:4–4 ·
view source on GitHub ↗
(targetDir: string)
Source
from the content-addressed store, hash-verified
2
import
path from
'node:path'
3
4
export
const
formatTargetDir = (targetDir: string) => targetDir.trim().replace(/\/+$/g,
''
)
5
6
export
const
copy = (src: string, dest: string) => {
7
const
stat = fs.statSync(src)
Callers
1
init
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected