source: trip-planner-front/node_modules/cliui/index.mjs@ ceaed42

Last change on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 309 bytes
RevLine 
[6a3a178]1// Bootstrap cliui with CommonJS dependencies:
2import { cliui } from './build/lib/index.js'
3import { wrap, stripAnsi } from './build/lib/string-utils.js'
4
5export default function ui (opts) {
6 return cliui(opts, {
7 stringWidth: (str) => {
8 return [...str].length
9 },
10 stripAnsi,
11 wrap
12 })
13}
Note: See TracBrowser for help on using the repository browser.