Newer
Older
vue-indexer / node_modules / cliui / index.mjs
@eugene-sukhodolskiy eugene-sukhodolskiy on 24 Sep 309 bytes v1.0
// 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
  })
}