mirror of
https://github.com/cloudflare/wrangler-action.git
synced 2024-11-27 04:04:46 +01:00
13 lines
309 B
JavaScript
13 lines
309 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
|
|
})
|
|
}
|