ansi-fragments
Version:
A tiny library with builders to help making logs/CLI pretty with a nice DX.
13 lines • 406 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
function buildChildren(children) {
return children
.map((child) => typeof child === 'string' ? child : child.build())
.join('');
}
exports.buildChildren = buildChildren;
function toArray(value) {
return Array.isArray(value) ? value : [value];
}
exports.toArray = toArray;
//# sourceMappingURL=utils.js.map
;