MCPcopy Index your code
hub / github.com/pyscript/pyscript / clear

Function clear

core/rollup/flatted.cjs:15–15  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

13const dest = join(__dirname, "..", "src", "stdlib", "pyscript", "flatted.py");
14
15const clear = (str) => String(str).replace(/^#.*/gm, "").trimStart();
16
17writeFileSync(dest, flatted + clear(readFileSync(source)));

Callers 1

flatted.cjsFile · 0.70

Calls 1

trimStartMethod · 0.80

Tested by

no test coverage detected