INNER CODE UNIT · TypeScript
NEW_LINE_REGEXP
basti-app/basti · packages/basti/src/common/cli.ts:34
private static readonly NEW_LINE_REGEXP = /(\r\n|\r|\n)/g;
private readonly indent: number;
private readonly spinner: Ora;
private context: CliContext;
private readonly onContextChange?: ContextChangeHook;
private constructor({
indent,
spinner,
context,
onContextChange,
}: CliPrivateInput) {
this.indent = indent ?? 0;
this.spinner = spinner ?? ora();
this.context = context ?? 'none';
this.onContextChange = onContextChange;