Installation
npm install matchcmd
What does it do?
matchcmd is a parser for routing strings to commands. Commands can be statically typed or used with STDIN for a script. Each command assumes all arguments are matched to any character other than spaces, tabs, or empty characters.
Example
var cmd = ; cmd; cmd; cmd; cmd; cmd; cmd; cmd; cmd;
Results:
Resize to 200px WIDTH 500px HEIGHT
Resize to 100px WIDTH 100px HEIGHT
Restarted?
Restarted?
Command failed! Command: fake command