Skip to content

Commit

Permalink
Add browser endpoint
Browse files Browse the repository at this point in the history
- not added to conditional exports yet
  • Loading branch information
shadowspawn committed May 13, 2023
1 parent 2be22e0 commit e68159e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions browser.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Bootstrap cliui with esm dependencies:
import { cliui } from './build/lib/index.js'
import stringWidth from 'https://esm.sh/string-width@^6'
import stripAnsi from 'https://esm.sh/strip-ansi@^7'
import wrap from 'https://esm.sh/wrap-ansi@^8'

export default function ui (opts) {
return cliui(opts, {
stringWidth,
stripAnsi,
wrap
})
}

0 comments on commit e68159e

Please sign in to comment.