Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
309 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | // Bootstrap cliui with CommonJS dependencies:
|
---|
| 2 | import { cliui } from './build/lib/index.js'
|
---|
| 3 | import { wrap, stripAnsi } from './build/lib/string-utils.js'
|
---|
| 4 |
|
---|
| 5 | export 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.