MCPcopy 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

2import path from 'node:path'
3
4export const formatTargetDir = (targetDir: string) => targetDir.trim().replace(/\/+$/g, '')
5
6export const copy = (src: string, dest: string) => {
7 const stat = fs.statSync(src)

Callers 1

initFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected