(level: string, more = 0)
| 56 | // Returns padding for pretty-printing appropriate for the depth of the level, |
| 57 | // or nothing if pretty printing is disabled |
| 58 | const indent = (level: string, more = 0) => { |
| 59 | return opts.pretty ? ' '.repeat(depthForLevel(level) + more) : ''; |
| 60 | }; |
| 61 | // Returns carriage return, or nothing if pretty printing is disabled |
| 62 | const cr = () => { |
| 63 | return opts.pretty ? '\n' : ''; |
no test coverage detected
searching dependent graphs…