mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 21:24:26 +08:00
This Cl is the output of the following command: npm run install-deps -- dedupe This is an attempt to reduce the amount of disk usage of the node_modules folder. For more information, see https://github.com/eslint/eslint/issues/14098 DISABLE_THIRD_PARTY_CHECK=NPM dedupe R=jacktfranklin@chromium.org Bug: none Change-Id: If482ec6cf6ad1936aab4a7b0ff3e61bf5ea98a8f Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2703961 Reviewed-by: Jack Franklin <jacktfranklin@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
14 lines
309 B
JavaScript
14 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
|
|
})
|
|
}
|