1 | // Bootstrap cliui with CommonJS dependencies:
|
2 | import { cliui } from './build/lib/index.js'
|
3 | import { wrap, stripAnsi } from './build/lib/string-utils.js'
|
4 |
|
5 | export default function ui (opts) {
|
6 | return cliui(opts, {
|
7 | stringWidth: (str) => {
|
8 | return [...str].length
|
9 | },
|
10 | stripAnsi,
|
11 | wrap
|
12 | })
|
13 | }
|