Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.2.3 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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc