bufferstream
Advanced tools
Comparing version
{ "name": "bufferstream" | ||
, "description": "painless stream buffering and cutting" | ||
, "version": "0.2.0" | ||
, "version": "0.3.0" | ||
, "homepage": "https://github.com/dodo/node-bufferstream" | ||
@@ -5,0 +5,0 @@ , "author": "dodo (https://github.com/dodo)" |
@@ -17,2 +17,3 @@ # BufferStream | ||
BufferStream = require('bufferstream') | ||
stream = new BufferStream([encoding]) | ||
@@ -80,2 +81,18 @@ * `encoding` default encoding for writing strings | ||
### PostBuffer | ||
PostBuffer = require('bufferstream/postbuffer') | ||
post = new PostBuffer(req) | ||
* `req` http.ServerRequest | ||
for if you want to get all the post data from a http server request and do some db reqeust before. | ||
buffer http client | ||
### post.onEnd | ||
post.onEnd(function (data) {…}); | ||
set a callback to get all post data from a http server request | ||
## example | ||
@@ -99,1 +116,2 @@ | ||
* https://github.com/dodo/node-bufferstream/blob/master/example/split.js | ||
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
9619
10.47%9
28.57%11
10%115
18.56%0
-100%