Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wankdanker/node-appconsole
A generic console for nodejs applications
https://github.com/wankdanker/node-appconsole
Last synced: 16 days ago
JSON representation
A generic console for nodejs applications
- Host: GitHub
- URL: https://github.com/wankdanker/node-appconsole
- Owner: wankdanker
- Created: 2013-07-09T16:21:38.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-09T17:04:58.000Z (over 11 years ago)
- Last Synced: 2024-12-13T22:04:05.529Z (26 days ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
node-appconsole
---------------A generic application console for node.
The goal of this project is to provide an easy way to define a text based
console with auto-complete, command history, menu contexts, auto-help,
auto-menu and other nice features.I lost interest in it some time ago. But here it is...
api
---###AppConsole(options)
Create an instance of AppConsole. `options` is an object with the possible
following properties:* welcome - A welcome message to display upon start
* promptSuffix - What is displayed at the end of the current prompt (default: "> ")
* input - the input stream to read from (default: process.stdin)
* output - the output stream to write to (default: process.stdout)
* prompt - the default current prompt (default : "")
* commands - an object of commands where the keys are the command names###.showCommandHelp()
###.writeln(str)
###.write(str)
###.push(prompt, commands)
###.pop()
###.showPrompt()