es-toolkit
Version:
A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
19 lines (18 loc) • 506 B
JavaScript
const require_wrapAnsiBg = require("./_internal/wrapAnsiBg.js");
//#region src/server/colors/bgBlackBright.ts
/**
* Bright black (gray) background. Wraps text with ANSI codes.
*
* @param text - The text to style.
* @returns The styled text.
*
* @example
* import { colors } from 'es-toolkit/server';
*
* console.log(colors.bgBlackBright('hello'));
*/
function bgBlackBright(text) {
return require_wrapAnsiBg.wrapAnsiBg("\x1B[100m", "\x1B[49m", text);
}
//#endregion
exports.bgBlackBright = bgBlackBright;