Skip to content
/ prompter Public

πŸ’»πŸ” Simple, easy-to-use framework written in Node.js for CLI-looping applications

Notifications You must be signed in to change notification settings

mn6/prompter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Prompter (WIP)

Simple, easy-to-use framework for looping CLI applications.

☁️ Installation

git clone https://github.com/matlsn/prompter.git
npm i
node index

Edit .env file using .env.example as a guideline for tweaks and settings.

Usage Screenshot

πŸ“‹ Plugin Example

const commandBase = require('../base/commandBase.js')

class Ping extends commandBase {
  get name () {
    return 'ping'
  }

  get aliases () {
    return ['pong', 'pang', 'peng']
  }

  get description () {
    return 'Pong!'
  }

  execute () {
    this.log('Pong!', 'red')
  }
}

module.exports = Ping

πŸ“ Documentation

πŸ—’οΈ Utilities (for usage in execute () {} inside plugins)

  • this.log('content', 'color') - Logs content to console with optional color (provided by Chalk). Compatable with arrays for cleaner multi-logging.
  • this.randInt(min, max) - Returns a random number between min and max.
  • this.randSelect([array]) - Returns a random item from an array.
  • this.randHex() - Returns a random hex color. Compatable with this.log color input.

πŸ’« Where is this framework used?

If you are using this library in one of your projects, add it in this list. ✨

JavaScript Style Guide

About

πŸ’»πŸ” Simple, easy-to-use framework written in Node.js for CLI-looping applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published