Buffer-ESM
A cross-platform, partial implementation shim of Node Buffer. Supports encoding and decoding strings.
Usage
Install via NPM and require in your project. There is also an ESM export, for use with browser or Deno.
const BufferShim = const buffer = BufferShim // Assumes utf8 when no encoding is passed.const firstByte = buffer0 // 84const base64 = buffer // VGhlc2UgYXJlIHRoZSB2b3lhZ2VzLi4uconst utf8 = buffer // These are the voyages...