🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

headquarters

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

headquarters - npm Package Compare versions

Comparing version

to
0.2.4

2

package.json
{
"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 @@