GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Volafile/writeable-buffer: A Writeable that buffers all data it receives.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
index.js
index.js
 
 
package.json
package.json
 
 

Repository files navigation

writeable-buffer

A Writeable that buffers all data it receives up to maxBufferSize (default 10 MB).

If .toString([[encoding,] callback]) or toBuffer([callback]) are called with a callback, they become asynchronous and wait until the stream has been ended with stream.end() or an error occured. Without a callback they return all data buffered at that time.

Usage:

const WritableBuffer = require('writeable-buffer');

const buffer = new WritableBuffer({
    maxBufferSize: 5000, // Only buffer up to 5kb
});

stream.pipe(buffer, { end : true });

buffer.toString('utf8', (error, string) => {
    console.log(string);
});

About

A Writeable that buffers all data it receives.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.