0.1.0 • Published 10 years ago

stackparser v0.1.0

Weekly downloads
14
License
-
Repository
github
Last release
10 years ago

Build Status Coverage Status

About

stackparser is a simple buffer stack parser.

Usage

var Parser = require('stackparser');

var req = new Parser(function (buf) {

  var m	= String(buf).match(/^(\w+)\s+(.+?)\s+HTTP\/(.+?)\s/g);
  if (m) {
	this.emit('complete'  /**, */);
  }
});

req.push('hello');
req.push(new Buffer('GET /path/a/b?c HTTP/1.1\r\n'));

License

MIT

0.1.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago