Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

A Node.js stream that accumulates all received chunks into a string.

License

Notifications You must be signed in to change notification settings

randymized/string-accumulating-sink

Repository files navigation

string-accumulating-sink

A Node.js stream that accumulates all received chunks into a string.

Pipe a source into an instance of string_accumulating_sink. It will accumulate the chunks of data it receives into a string and then send that string to the callback.

Getting Started

Install the module with: npm install string-accumulating-sink

string_accumulating_sink([encoding],function (result){});

Example

var string_accumulating_sink = require( 'string-accumulating-sink' );
source_stream.pipe(string_accumulating_sink(function (result) {
    console.log(result);
}))

Release History

(Nothing yet)

Build Status

License

Copyright (c) 2013 Randy McLaughlin

Licensed under the MIT license.

About

A Node.js stream that accumulates all received chunks into a string.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published