MCPcopy
hub / github.com/rohitdhas/shittier / shittify

Function shittify

src/index.ts:11–18  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

9} from './utils/cst-formatter/white-space';
10
11export function shittify(code: string) {
12 const modifiedCode = addInconsistentIndentation(code);
13 const cst = new Parser().parse(modifiedCode);
14 randomizeCase(cst);
15 addRandomWhiteSpace(cst);
16
17 return cst.getSourceCode();
18}
19
20const argv = yargs
21 .usage('Usage: shittier [options] <input> <output>')

Callers 1

index.tsFile · 0.85

Calls 3

randomizeCaseFunction · 0.90
addRandomWhiteSpaceFunction · 0.90

Tested by

no test coverage detected