With browserify, simply require('buffer') or use the Buffer global and you will get this module.The goal is to provide an API that is 100% identical to node's Buffer API. Read the official docs for the full list of properties, instance methods, and class methods that are supported.
browserify buffer nodejs browser arraybuffer compatible dataview uint8arrayThe file type is detected by checking the magic number of the buffer.Show your support for this module by buying this excellent Node.js course.
nodejs uint8array buffer magic-numbers file magic file-types detect mime type archive image img pic picture flash photo video check is exif exe binary jpg png gif webp flif cr2 tif bmp jxr psd zip tar rar gz bz2 7z dmg mp4 m4v mid mkv webm mov avi mpg mp3 m4a ogg opus flac wav amr pdf epub mobi swf rtf woff woff2 eot ttf otf ico flv ps xz sqlite xpi cab deb ar rpm z lz msi mxf mts wasm webassembly blend bpg docx pptx xlsx 3gp jp2 jpm jpx mj2 aif odt ods odp xmlA CLI tool bin/msgpack converts data stream from JSON to MessagePack and vice versa. Browser version msgpack.min.js is also available. 50KB minified, 14KB gziped.
arraybuffer buffer fluentd messagepack msgpack serialize stream typedarray uint8arrayReturn a fresh PNG buffer given a set of PNG chunks. Useful in combination with png-chunks-encode to easily modify or add to the data of a PNG file.And returns a Uint8Array containing the raw PNG buffer.
png, buffer, encode, recode, modify, crc, uint8arraySay you're using the 'buffer' module on npm, or browserify and you're working with lots of binary data.But, alas, every time you do Buffer.from(uint8array) the entire array gets copied. The Buffer constructor does a copy; this is defined by the node docs and the 'buffer' module matches the node API exactly.
buffer typedarray typed-arrays nodejs browser browserify typed-array convert no-copy uint8array uint16array uint32array int16array int32array float32array float64array arraybuffer dataviewCheck if a Buffer/Uint8Array is a GZIP file
archive buffer check detect gzip type uint8arrayCheck if a Buffer/Uint8Array is a ZIP file
archive buffer check detect zip type uint8arrayUses an intermediary canvas node to grab the RGBA pixels of the given source, with an optional clipping region. Works on HTML Canvas, Image, and Video elements.Gets the RGBA pixels from HTML Image/Video/Canvas element as a Uint8Array with some optional parameters.
gl webgl glsl stackgl modules-gl gl-modules image pixel imagedata canvas pixels uint8array rgba rgbTypedArray polyfill ripped from this module.
arraybuffer dataview float32array float64array int8array int16array int32array uint8array uint8clampedarray uint16array uint32array typed array polyfillReturns a stream.Readable. Value to convert to a stream.
readable-stream stream nodejs npm-package readablestream string buffer uint8array from into to transform convert readable pullCheck if a Buffer/Uint8Array is a TAR file
archive buffer check detect tar type uint8arrayQuick check if a Node.js Buffer or Uint8Array is UTF-8.
nodejs buffer utf-8 uint8array charset utf8 text encodingCompatible with any binary data and every modern JS engine. Please note this module requires global atob and btoa in NodeJS, polyfilled in tests in here as such.
uint8array base64 conversion safe encode decode
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.