Pibd-21_Alekseev_I.S._Inter.../IP/node_modules/cliui/index.mjs

14 lines
309 B
JavaScript
Raw Permalink Normal View History

2023-12-21 21:08:22 +04:00
// 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
})
}