Browse Source

version bump, update readme

master 0.1.2
Brett Langdon 12 years ago
parent
commit
1e9b0171a5
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      README.md
  2. +1
    -1
      package.json

+ 1
- 0
README.md View File

@ -57,6 +57,7 @@ This is the constructor for `cmdsrv` and should be invoked as `new cmdsrv()`.
* `port` - which port to bind to when calling `start` (default: `3223`)
* `delimiter` - which character to split each command on (default: `" "`)
* `caseSensitive` - whether or not the commands should be case sensitive (default: `false`)
* `tokenizer` - a `function(line)` which returns a list of tokens for the line (default: `line.split(this.delimiter)`
### cmdsrv.on(command, handler)
Received commands are emitted to any handlers listening for that command.


+ 1
- 1
package.json View File

@ -1,6 +1,6 @@
{
"name": "cmdsrv",
"version": "0.1.1",
"version": "0.1.2",
"description": "simple text protocol command server",
"main": "lib/index.js",
"scripts": {


Loading…
Cancel
Save