Given a node style buffer, create an object URL that can be provided to image, video and audio element src attributes
Create an ArrayBuffer instance from a Data URI string
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Is this value a JS ArrayBuffer?
Is this value a JS SharedArrayBuffer?
Get the ArrayBuffer out of a TypedArray, robustly.
Get the ArrayBuffer out of a DataView, robustly.
Pass in a string, array, Buffer, Data View, or Uint8Array, and get a Buffer back.
return whether two buffers are equal
TypeScript definitions for responselike
Modern Buffer API polyfill without footguns
Safer Node.js Buffer API
Node.js Buffer API, for the browser
Get image buffer from url,Resize image using buffer/url, upload image buffer to s3,
smart-buffer is a Buffer wrapper that adds automatic read & write offset tracking, string operations, data insertions, and more.
Reads / writes floats / doubles from / to buffers in both modern and ancient browsers.
Determine if an object is a Buffer
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
Convert a typed array to a Buffer without a copy
Generates an asynchronous resolver function from a PAC file
minimal implementation of a PassThrough stream
Read/write IEEE754 floating point numbers from/to a Buffer or array-like object
Fluentd output plugin to buffer logs as json arrays to a url
# 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.