You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'd rather go with the native API here than the TextDecoder variant. node has a native buffer.isUtf8() since 18.14 (import { isUtf8 } from 'node:buffer')
Activity
dreyfus92 commentedon Aug 27, 2026
i'd rather go with the native API here than the TextDecoder variant. node has a native
buffer.isUtf8()since 18.14 (import { isUtf8 } from 'node:buffer')wdyt @43081j ?
gameroman commentedon Aug 27, 2026
buffer.isUtf8()is a good choice for Node.jsFor browsers
TextDecoderis the way to do it43081j commentedon Aug 29, 2026
we need to show both i guess, so maybe use a documented replacement for this one?
gameroman commentedon Aug 29, 2026
Yeah, makes sense 👍