|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
309 bytes
|
| Line | |
|---|
| 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.