A utility to combine and enhance CLI and GUI application output.
A simple yet stunning interface for console input and output.
At its core Sqwk is a wrapper for terminal-menu but it provides a much more intuitive interface to provide consistent ease of use.
In the future Sqwk will same mirror the CLI interface to the browser so your application will have a simple GUI integrated with NW.js without any additional development. This will make your application instantly accessible to users wary of the command line.
The following features are planned for the 1.0.0 release:
Installation via npm
npm install --save sqwk
Or for the latest development release
npm install --save https://github.com/StudioLE/sqwk/archive/master.tar.gz
sqwk = require('sqwk')
// Must be called before any sqwk.write()
sqwk.init({
// Options
})
// Must be called at the end of your application
sqwk.end()
The following options can be passed as an object via
sqwk.init({
// Options
})
title (String|False) Titlereset (Boolean) Clear console before each write?menu (Object) Options passed to terminal-menuformatTitle (function) A function to format the titleSet options and capture user input
options (Object) OptionsWrite a message or menu to the terminal
message (String | Array) Message or messagesoptions (Array) Selectable menu optionscallback (function) Write a message or menu to the terminalwrite (Object) Terminal objectClose terminal and exit process
err (Object) Errorexit (Boolean) Exit process?For changes refer to CHANGELOG.md
I'm always on the look out for collaborators so feel free to suggest new features, log an issue or just fork at will.