Skip to content

issues Search Results · repo:sindresorhus/uint8array-extras language:JavaScript

Filter by

9 results
 (206 ms)

9 results

insindresorhus/uint8array-extras (press backspace or delete to remove)

I ve been using this const ia = base64ToUint8Array(encodedBody); if (type === ArrayBuffer ) { return ia.buffer; } return new Blob([ia], { type: mimeTypeEssence }); ^ and in TS 5.9 ...
  • fregante
  • 3
  • Opened 
    3 days ago
  • #16

Coming soon to modern browsers: - Uint8Array#toBase64() - Uint8Array#setFromBase64() - Uint8Array#toHex() - Uint8Array#setFromHex() Maybe we should deprecate/remove these related functions from ...
  • Richienb
  • 1
  • Opened 
    on Jan 23
  • #15

I naively replaced new TextDecoder(data).decode() with uint8ArrayToString(data), in hopes of making use of the decoder cache and keeping my code concise and consistent (i.e. always use the library s decoder ...
  • sholladay
  • Opened 
    on Jul 16, 2024
  • #14

Does stringToUint8Array (UTF-8) cover all cases or should there be an implementation dedicated to ASCII?
  • make-github-pseudonymous-again
  • 1
  • Opened 
    on Feb 10, 2024
  • #9

./node_modules/.pnpm/uint8array-extras@0.5.0/node_modules/uint8array-extras/index.js 34:15 Module parse failed: Unexpected token (34:15) File was processed with these loaders: - ./node_modules/.pnpm/babel-loader@8.0.6_@babel+core@7.7.4_webpack@4.41.2/node_modules/babel-loader/lib/index.js ...
  • ixqbar
  • 1
  • Opened 
    on Nov 3, 2023
  • #6

import {isUint8Array} from uint8array-extras ; console.log(isUint8Array(new Uint8Array())); //= true console.log(isUint8Array(new ArrayBuffer(10))); //= false + console.log(isUint8Array(Buffer.from(10))); ...
  • jimmywarting
  • 1
  • Opened 
    on Oct 28, 2023
  • #5

Buffer is a subclass of Uint8Array, so you can generally treat it like a Uint8Array. However, Buffer changes the behavior of the .slice() method, so treating it like a Uint8Array may cause subtle problems. ...
  • sindresorhus
  • 2
  • Opened 
    on Oct 25, 2023
  • #4

I would be curious to know what are the performances implications about this, will the transition boost or reduce performances? Browser apart where Buffer is polifilled using Uint8Array, Uint8Array could ...
  • robertsLando
  • 4
  • Opened 
    on Oct 24, 2023
  • #2

One of the most useful bits of functionality offered by Buffer is how it makes it trivial to convert data between several encodings. A plain TypedArray is woefully deficient in this area, and the equivalent ...
  • skibz
  • 11
  • Opened 
    on Oct 24, 2023
  • #1
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub