(code: string)
| 9 | } from './utils/cst-formatter/white-space'; |
| 10 | |
| 11 | export 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 | |
| 20 | const argv = yargs |
| 21 | .usage('Usage: shittier [options] <input> <output>') |
no test coverage detected