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 do agree that the use of this node package is diminishing, I would like to note that the implementation of TextEncoder is still experimental, and requires a polyfill for IE.
Further, this package does a string check, which can be useful for when a number gets passed in instead.
webidl have stuff that makes sure everything you pass to encode() is transformed into a string first by doing more magic than just String(obj)
you can pass in boolean, numbers, null, whatever...
and IE is pretty much dead now... think it would just be better to conditionally load in a pollyfill if TextEncoder isn't available
u8array/index.js
Lines 1 to 18 in 178cb30
Can all be replaced by this:
Would discourage use of this package and instead encourage ppl to use TextEncoder instead
The text was updated successfully, but these errors were encountered: