Nagging Penguin Matriarchs
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

cliy

1.6.1 • Public • Published

Cliy

Command Line Interface Library.

Features

  • Auto created help menus

API

  • name: String (default: program)
  • version: String (default: 0.0.0)
  • fallback: Boolean (default: true) Will print the help if no operation arguments.
  • operations: Array
    • operation: Object
      • key: String
      • name: String
      • operations: Array
      • description: String
      • method: AsyncFunction
        • argument: String The argument passed in by the user.
        • values: Object The name value pair of the returned values from previous methods.
  • setup: AsyncFunction
    • options: Object
  • has: AsyncFunction
    • data: String Name or key
  • find: AsyncFunction
    • data: String Name or key
  • add: AsyncFunction
    • operation: Object
  • execute: AsyncFunction
    • operations: Array
      • operation: Object
  • parse: AsyncFunction
    • args: Array
  • run: AsyncFunction
    • arguments: process.argv
  • log: Function Will print to console with color and style.
    • text: String
    • colors: Array
  • info: Function Will print to console with color and style. (Default color green)
    • text: String
    • colors: Array
  • warn: Function Will print to console with color and style. (Default color yellow)
    • text: String
    • colors: Array
  • error: Function Will print to console with color and style. (Default color red)
    • text: String
    • colors: Array

Colors

  • Style
    • reset
    • bold
    • dim
    • italic
    • underline
    • blink
    • inverse
    • hidden
    • strike
  • Foreground
    • black
    • red
    • green
    • yellow
    • blue
    • magenta
    • cyan
    • white
    • gray
    • grey
  • Background
    • bgBlack
    • bgRed
    • bgGreen
    • bgYellow
    • bgBlue
    • bgMagenta
    • bgCyan
    • bgWhite

Authors

AlexanderElias

License

Why You Should Choose MPL-2.0 This project is licensed under the MPL-2.0 License

install

npm i cliy

Downloadsweekly downloads

6

version

1.6.1

license

MPL-2.0

repository

githubgithub

last publish

collaborators

  • avatar