MCPcopy Create free account
hub / github.com/Effect-TS/effect / sanitize

Function sanitize

packages/effect/typeperf/run.mjs:41–41  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

39const toAbsolute = (path) => resolve(typeperfDir, path)
40
41const sanitize = (name) => name.replace(/[^a-zA-Z0-9._-]/g, "-")
42
43const writeTempTsconfig = (suiteName, subjectName, sourcePath) => {
44 mkdirSync(tmpDir, { recursive: true })

Callers 1

writeTempTsconfigFunction · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected