diff --git a/README.md b/README.md index 796f1ce..716a588 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/package.json b/package.json index 0bcf7b9..3df7eb3 100644 --- a/package.json +++ b/package.json @@ -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": {