2025-04-02 06:50:39 -04:00

14 lines
313 B
JavaScript

// Bootstrap cliui with CommonJS dependencies:
import { cliui } from './build/lib/index.js';
import { wrap, stripAnsi } from './build/lib/string-utils.js';
export default function ui(opts) {
return cliui(opts, {
stringWidth: (str) => {
return [...str].length;
},
stripAnsi,
wrap,
});
}