New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bufferedreader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bufferedreader - npm Package Compare versions

Comparing version
1.0.2
to
1.0.3
+1
-1
package.json
{
"name": "bufferedreader",
"version": "1.0.2",
"version": "1.0.3",
"description": "Buffer responses from asynchronous functions to increase the performance of Node.js applications",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -51,7 +51,7 @@ ![BufferedReader](./docs/logo.png)

### `reader = new BufferedReader(bufferLength, function populateBuffer`
### `reader = new BufferedReader(length, function populateBuffer`
Creates a new `BufferedReader` instance.
`bufferLength` is an integer that defines how deep of a buffer the reader should attempt to maintain. For example, if you specify `10` here, the reader will hold at most 10 responses in memory at any one time.
`length` is an integer that defines how deep of a buffer the reader should attempt to maintain. For example, if you specify `10` here, the reader will hold at most 10 responses in memory at any one time.

@@ -58,0 +58,0 @@ `populateBuffer` is the function that the reader will use to populate the buffer. It should be in the form of `function populateBuffer(cb)`. The callback provided to your function should be called with the response of your function (irrespective of whether or not it is asynchronous). The values passed to the callback will be passed directly back to you out of the buffer in the same exact order. For example: