.
This commit is contained in:
		
							
								
								
									
										13
									
								
								qwen/nodejs/node_modules/cliui/index.mjs
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								qwen/nodejs/node_modules/cliui/index.mjs
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
// 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
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user