Skip to content

Commit

Permalink
Creating HTTPerf.Parser for Parsing only.
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Mervine committed Feb 27, 2014
1 parent 1ac2079 commit e9fe227
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
10 changes: 10 additions & 0 deletions lib/httperf.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ function HTTPerf(opts) {
}
}

/***
* Support:
*
* var Parser = require('httperfjs').Parser;
*
* var data = new Parser(' ... raw httperf output ... ');
* console.log(data);
***/
HTTPerf.Parser = Parser;

HTTPerf.prototype = {
parse: true,
params: {},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "httperfjs",
"version": "0.0.6",
"version": "0.0.7",
"description": "Node.js binding for HTTPerf",
"keywords": [
"httperf",
Expand Down
3 changes: 1 addition & 2 deletions test/parser_test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
var HTTPerf = require('lib/httperf');
var Parser = require('lib/parser');
var Parser = require('lib/httperf').Parser;
var readFileSync = require('fs').readFileSync;

process.env.PATH = "./test/support:"+process.env.PATH;
Expand Down

0 comments on commit e9fe227

Please sign in to comment.