headquarters
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "headquarters", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Issue commands to your program while it is running.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,4 +15,6 @@ # Headquarters | ||
## Usage | ||
## Methods | ||
### command | ||
``` | ||
@@ -31,2 +33,16 @@ hq.command(name, action); | ||
### raw | ||
``` | ||
hq.raw(action); | ||
``` | ||
Specify what to do with raw input (i.e. issue a command with no command name). | ||
Parameters | ||
* **action** called when raw input (input with no established command) is entered (*function*) | ||
The input is broken up by spaces, put into an array, and then passed into the *action* callback as a single parameter. Named commands can still be set and executed normally. | ||
## Example | ||
@@ -33,0 +49,0 @@ |
2996
80
3
50