JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 92495216
  • Score
    100M100P100Q239688F
  • License ISC

easily create complex multi-column command-line-interfaces

Package Exports

  • cliui

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cliui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cliui

easily create complex multi-column command-line-interfaces.

var ui = require('cliui')({
  width: 80
})

ui.row('Usage: $0 [command] [options]')

ui.row({
  text: 'Options:',
  padding: [2, 0, 2, 0]
})

ui.row(
  {
    text: "-f, --file",
    width: 40,
    padding: [0, 4, 0, 4]
  },
  {
    text: "the file to load",
    width: 25
  },
  {
    text: "[required]",
    align: 'right'
  }
)

console.log(ui.toString())