A simple pipe for buffers
minimal implementation of a PassThrough stream
a ThroughStream that strictly buffers all readable events when paused.
Postgres bytea parser
split a Text Stream into a Line Stream, using Stream 3
Safer Node.js Buffer API
Modern Buffer API polyfill without footguns
Node.js Buffer API, for the browser
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Reads / writes floats / doubles from / to buffers in both modern and ancient browsers.
Is this value a JS ArrayBuffer?
smart-buffer is a Buffer wrapper that adds automatic read & write offset tracking, string operations, data insertions, and more.
Is this value a JS SharedArrayBuffer?
Get the ArrayBuffer out of a TypedArray, robustly.
An iteration of the Node.js core streams with a series of improvements
a stream of blocks
Get the ArrayBuffer out of a DataView, robustly.
Determine if an object is a Buffer
Pass in a string, array, Buffer, Data View, or Uint8Array, and get a Buffer back.
JSON parse & stringify that supports binary via bops & base64
A [ponyfill](https://ponyfill.com) for `Buffer.from`, uses native implementation if available.
A pure javascript CRC32 algorithm that plays nice with binary data
Filesystem-buffered, passthrough stream that buffers indefinitely rather than propagate backpressure from downstream consumers.
Convert a typed array to a Buffer without a copy
The splice family of Linux system calls can transfer data between file descriptors without the need to copy data into userspace. Instead of a userspace buffer, they rely on an ordinary Unix pipe as a kernel-level buffer. The `splice' and `tee' syscalls are also provided by the {sleepy_penguin}[https://yhbt.net/sleepy_penguin/] library. "io_splice" remains maintained for old applications or users experimenting with the vmsplice syscalls
Magritte is a simple but powerful wrapper to Open3 pipes that makes it easy to handle two-way piping of data into and out of a sub-process. Various input IO wrappers are supported and output can either be to an IO or to a block. A simple line buffer class is also provided, to turn block writes to the output block into line-by-line output to make interacting with the sub-process easier.
# Rack HTTP Pipe Use to pipe directly a remote HTTP file without buffering it. > /!\ Do not work with WebBrick, tested with puma ## Use case * Given a file named #HASH#.pdf on S3 * You want a clean URL and handling the authentication in front of it ``` GET http:/example.com/download Content-Disposition: attachment;filename=name-fetched-from-db.pdf Content-Length Content-Type etc. ``` ## Usage ```ruby get "/" do http_pipe "http://example.com/iso-ubuntu-1404-64bits", { status: 200, headers: { "Content-Type: application/octet-stream", "Content-Disposition: attachment;filename=ubuntu.iso", } } end ``` See the example directory for an example app using sinatra
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.