Files
codeql-action/node_modules/ava/lib/chalk.js
2022-02-01 18:56:42 +00:00

16 lines
351 B
JavaScript

import {Chalk} from 'chalk'; // eslint-disable-line unicorn/import-style
let chalk = new Chalk(); // eslint-disable-line import/no-mutable-exports
export {chalk};
let configured = false;
export function set(options) {
if (configured) {
throw new Error('Chalk has already been configured');
}
configured = true;
chalk = new Chalk(options);
}