ShoutJS
Make your ShellJS commands explicit and get a beautiful output.
Example
Get this:
With this:
var shout = ; shout;shout;shout;
Commands
Supported ShellJS commands are: cp
, rm
, mv
, mkdir
, to
.
ShoutJS only wraps ShellJS commands which change the filesystem. For usage information, you can go here ShellJS.
There's only to
which differs from ShellJS:
var shell = shout = ; 'Bankai!'; // ShellJSshout; // ShoutJS
Theming
ShoutJS supports theming through Logan. So it's possible to customize ShoutJS output pretty much the way you want.
Here is the default theme:
// Default themeshoutlogan;
To override it:
// A bit more old fashioned theme...shoutlogan;
Adding new messages
In many cases, you may want to log more than ShellJS commands for your users.
The recommanded way is to use Logan.
Here's an example:
var shout = logan = ; logan; logan;shout;logan;
Configuration
You can disable ShoutJS output using logan.silent
option.
shoutlogansilent = true;shout; // No output
Issues
Have a bug or missing a new command introduced in ShellJS? Please create an issue here on GitHub!
Themes
If you've created a theme for ShellJS feel free to drop me a message @typicode.