You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
309 B
13 lines
309 B
// 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
|
|
})
|
|
}
|
|
|